Properly update existing global meta after mutation

"existingMetas" was incorrectly iterated over which caused an error in case the mutated meta did not exist prior to the mutation
This commit is contained in:
schroda
2024-08-05 16:02:28 +02:00
parent 49f1ad804f
commit 986d071bc8

View File

@@ -1097,7 +1097,7 @@ export class RequestManager {
fragment: GLOBAL_METADATA,
});
return [...existingMetas, newMetaRef];
return [...existingMetas.nodes, newMetaRef];
},
},
});