diff --git a/client/client.ts b/client/client.ts index 0dd02f8c..5f1ede48 100644 --- a/client/client.ts +++ b/client/client.ts @@ -509,9 +509,7 @@ export class Client { resolve(); // In the background we'll fetch any enriched meta data, if any - const enrichedMeta = await this.objectIndex.getObjectByRef< - PageMeta - >( + const enrichedMeta = await this.objectIndex.getObjectByRef( this.currentName(), "page", this.currentName(), @@ -1122,7 +1120,7 @@ export class Client { // decorations if (await this.objectIndex.hasFullIndexCompleted()) { try { - const enrichedMeta = await this.objectIndex.getObjectByRef( + const enrichedMeta = await this.objectIndex.getObjectByRef( pageName, "page", pageName, diff --git a/client/data/object_index.ts b/client/data/object_index.ts index 00398a30..9cac8005 100644 --- a/client/data/object_index.ts +++ b/client/data/object_index.ts @@ -130,7 +130,7 @@ export class ObjectIndex { }; } - getObjectByRef<_T>(page: string, tag: string, ref: string) { + getObjectByRef(page: string, tag: string, ref: string) { return this.ds.get([indexKey, tag, this.cleanKey(ref, page), page]); }