diff --git a/plugins/view-resources/src/components/navigator/TreeElement.svelte b/plugins/view-resources/src/components/navigator/TreeElement.svelte index 64f053ca0d..f77f51d9a8 100644 --- a/plugins/view-resources/src/components/navigator/TreeElement.svelte +++ b/plugins/view-resources/src/components/navigator/TreeElement.svelte @@ -58,10 +58,12 @@ let inlineActions: Action[] = [] let popupMenuActions: Action[] = [] - $: actions().then((result) => { - inlineActions = result.filter((action) => action.inline === true) - popupMenuActions = result.filter((action) => action.inline !== true) - }) + $: if (actions !== undefined) { + actions().then((result) => { + inlineActions = result.filter((action) => action.inline === true) + popupMenuActions = result.filter((action) => action.inline !== true) + }) + } async function onMenuClick (ev: MouseEvent): Promise { // Read actual popup actions on open as visibility might have been changed