Fix error type

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-12-02 14:17:21 +01:00
parent d710f5af73
commit ae6b13eec8
6 changed files with 33 additions and 12 deletions

View File

@@ -77,8 +77,9 @@ export async function proboApiRequestAllItems(
}
if (connection?.pageInfo) {
hasNextPage = connection.pageInfo.hasNextPage;
cursor = connection.pageInfo.endCursor;
const pageInfo = connection.pageInfo as IDataObject;
hasNextPage = pageInfo.hasNextPage as boolean;
cursor = pageInfo.endCursor as string | null;
} else {
hasNextPage = false;
}