[Part 1]: Sidebar fixes (#6640)

This commit is contained in:
Kristina
2024-09-20 12:12:06 +07:00
committed by GitHub
parent 14937d13bf
commit 7b98fbc3d2
12 changed files with 71 additions and 51 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ export function pinWidgetTab (widget: Widget, tabId: string): void {
if (widgetState === undefined) return
const tabs = widgetState.tabs
.map((it) => (it.id === tabId ? { ...it, isPinned: true } : it))
.map((it) => (it.id === tabId ? { ...it, isPinned: true, allowedPath: undefined } : it))
.sort((a, b) => (a.isPinned === b.isPinned ? 0 : a.isPinned === true ? -1 : 1))
widgetsState.set(widget._id, { ...widgetState, tabs })