From dd270894421a03dea662be106422dad3923963c9 Mon Sep 17 00:00:00 2001 From: Michael Wedl Date: Fri, 5 Jul 2024 12:47:26 +0200 Subject: [PATCH] Fix null error on set assignee --- frontend/src/utils/collab.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/collab.ts b/frontend/src/utils/collab.ts index 19f395df8..a07e5309d 100644 --- a/frontend/src/utils/collab.ts +++ b/frontend/src/utils/collab.ts @@ -798,7 +798,7 @@ export function useCollab(storeState: CollabStoreState) { for (let i = 0; i < subvalue.length; i++) { emitBeforeApplySetValue(`${subpath}.[${i}]`, subvalue[i]); } - } else if (typeof subvalue === 'object') { + } else if (subvalue && typeof subvalue === 'object') { for (const [k, v] of Object.entries(subvalue)) { emitBeforeApplySetValue(`${subpath}.${k}`, v); }