This commit is contained in:
martmull 2024-02-09 11:16:49 +01:00
parent 3aefef8e96
commit 2df7e9b656

View File

@ -22,15 +22,15 @@ export const ObjectMetadataNavItems = () => {
queryMethodName: QueryMethodName.FindMany,
});
console.log(cachedRootQuery);
const { records } = useFindManyRecords({
skip: cachedRootQuery?.views,
objectNameSingular: CoreObjectNameSingular.View,
useRecordsWithoutConnection: true,
});
const views = cachedRootQuery?.views?.edges?.map((edge: any) => edge?.node);
const views = records.length
? records
: cachedRootQuery?.views?.edges?.map((edge: any) => edge?.node);
return (
<>