mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 05:55:09 +02:00
[Part 1]: Sidebar fixes (#6640)
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user