From 0ee7b1e983965a7c451da5acdf3340f58a76763a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20Gr=C3=A4f?= Date: Sat, 6 Jan 2024 12:34:47 +0100 Subject: [PATCH] TAB-480 error in command AddCommentCommand - fix --- src/services/TabsetService2.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/services/TabsetService2.ts b/src/services/TabsetService2.ts index 71444fed..1a932acc 100644 --- a/src/services/TabsetService2.ts +++ b/src/services/TabsetService2.ts @@ -673,8 +673,9 @@ export function useTabsetService() { } } for (const f of folders) { - return findTabInFolder(f.folders, tabId) - } + if (f.folders) { + return findTabInFolder(f.folders, tabId) + } } return undefined }