From 7c3b42f3fdb357b5514bbd5647e96d1134c839f8 Mon Sep 17 00:00:00 2001 From: hirrrooo <99264185+hirrrooo@users.noreply.github.com> Date: Mon, 29 Jun 2026 07:02:56 +0000 Subject: [PATCH] fix(boards): de-duplicate open all app IDs --- .../boards/(content)/_header-actions.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/apps/nextjs/src/app/[locale]/boards/(content)/_header-actions.tsx b/apps/nextjs/src/app/[locale]/boards/(content)/_header-actions.tsx index 091243d23..f06065abf 100644 --- a/apps/nextjs/src/app/[locale]/boards/(content)/_header-actions.tsx +++ b/apps/nextjs/src/app/[locale]/boards/(content)/_header-actions.tsx @@ -55,13 +55,17 @@ export const BoardContentHeaderActions = () => { const openAllInNewTabs = useCallback(async () => { const currentLayoutId = getCurrentLayout(board); - const appIds = filterByItemKind( - board.items.filter((item) => item.layouts.some((layout) => layout.layoutId === currentLayoutId)), - settings, - "app", - ).map((item) => { - return item.options.appId; - }); + const appIds = [ + ...new Set( + filterByItemKind( + board.items.filter((item) => item.layouts.some((layout) => layout.layoutId === currentLayoutId)), + settings, + "app", + ).map((item) => { + return item.options.appId; + }), + ), + ]; const apps = await fetchApi.app.byIds.query(appIds); const appsWithUrls = apps.filter((app) => app.href && app.href.length > 0);