From 549b158e3d0d2833198c69b63b3d2fb033128824 Mon Sep 17 00:00:00 2001 From: averrin Date: Fri, 24 Jun 2022 18:44:52 +0200 Subject: [PATCH] fix --- src/view/MainUI.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/MainUI.svelte b/src/view/MainUI.svelte index a3224d5..ce91aa7 100644 --- a/src/view/MainUI.svelte +++ b/src/view/MainUI.svelte @@ -77,7 +77,7 @@ let savedActions; const unsubscribe3 = currentScene.subscribe(scene => { - savedActions = scene.data.flags["director-actions"].filter(a => a); + savedActions = "director-actions" in scene.data.flags ? scene.data.flags["director-actions"].filter(a => a) : []; actions = savedActions ? savedActions : [{id: uuidv4(), tags: [], type: ''}]; }); onDestroy(unsubscribe3);