diff --git a/src/routes/console/project-[project]/databases/database/[database]/collection/[collection]/store.ts b/src/routes/console/project-[project]/databases/database/[database]/collection/[collection]/store.ts index a80b52bc4..6ff5963c0 100644 --- a/src/routes/console/project-[project]/databases/database/[database]/collection/[collection]/store.ts +++ b/src/routes/console/project-[project]/databases/database/[database]/collection/[collection]/store.ts @@ -96,16 +96,27 @@ export const indexList = cachedStore< }; }); +/** + * TODO: Mock proper types until the SKD is fixed. + */ +export type AttributeResponse = Omit & { + attributes: Attributes[]; +}; + export const attributeList = cachedStore< - Models.AttributeList, + AttributeResponse, { load: (databaseId: string, collectionId: string) => Promise; } >('attributeList', function ({ set }) { return { load: async (databaseId, collectionId) => { - const response = await sdkForProject.databases.listAttributes(databaseId, collectionId); - set(response); + const response: unknown = await sdkForProject.databases.listAttributes( + databaseId, + collectionId + ); + + set(response as AttributeResponse); } }; });