Fix tests and lint (#6303)

Fixing tests and lint on main!
This commit is contained in:
Charles Bochet
2024-07-17 14:52:17 +02:00
committed by GitHub
parent 94c2358c89
commit e6f6069fe7
9 changed files with 175 additions and 11 deletions

View File

@ -16,6 +16,7 @@ export const query = gql`
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}

View File

@ -36,6 +36,7 @@ const expectedQueryTemplate = `
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}

View File

@ -61,7 +61,7 @@ export const useRecordShowPagePagination = (
const setLastShowPageRecordId = useSetRecoilState(lastShowPageRecordIdState);
const [isLoadedRecords, setIsLoadedRecords] = useState(false);
const [isLoadedRecords] = useState(false);
const objectNameSingular = propsObjectNameSingular || paramObjectNameSingular;
const objectRecordId = propsObjectRecordId || paramObjectRecordId;