From 986d071bc8536271ac22b7c4809c0f466c0b8dde Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 5 Aug 2024 16:02:28 +0200 Subject: [PATCH] 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 --- src/lib/requests/RequestManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/requests/RequestManager.ts b/src/lib/requests/RequestManager.ts index 9b3e3496..7098edb0 100644 --- a/src/lib/requests/RequestManager.ts +++ b/src/lib/requests/RequestManager.ts @@ -1097,7 +1097,7 @@ export class RequestManager { fragment: GLOBAL_METADATA, }); - return [...existingMetas, newMetaRef]; + return [...existingMetas.nodes, newMetaRef]; }, }, });