Feat/front forge graphql query (#2007)
* wip * Wip * Wip * Finished v1 * Wip * Fix from PR * Removed unused fragment masking feature * Fix from PR * Removed POC from nav bar * Fix lint --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -21,7 +21,10 @@ export const FetchMetadataEffect = () => {
|
||||
query: GET_ALL_OBJECTS,
|
||||
});
|
||||
|
||||
if (objects.data.objects.edges.length > 0) {
|
||||
if (
|
||||
objects.data.objects.edges.length > 0 &&
|
||||
metadataObjects.length === 0
|
||||
) {
|
||||
const formattedObjects: MetadataObject[] =
|
||||
objects.data.objects.edges.map((object) => ({
|
||||
...object.node,
|
||||
|
||||
Reference in New Issue
Block a user