mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-28 06:46:24 +03:00
Fix
This commit is contained in:
parent
3aefef8e96
commit
2df7e9b656
@ -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 (
|
||||
<>
|
||||
|
Loading…
Reference in New Issue
Block a user