mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-24 16:01:42 +00:00
ws color: separate logic from reactivity condition (#5046)
* fix workspace color picker issue * removing useless reactive statement * some ui fixes * separate logic from reactivity condition
This commit is contained in:
@@ -14,9 +14,11 @@
|
||||
|
||||
export let open = false
|
||||
|
||||
$: if ($usersWorkspaceStore && $workspaceStore !== lastWorkspace) {
|
||||
$: $usersWorkspaceStore && $workspaceStore !== lastWorkspace && onWorkspaceChange()
|
||||
|
||||
function onWorkspaceChange() {
|
||||
lastWorkspace = $workspaceStore
|
||||
savedWorkspaceColor = $usersWorkspaceStore.workspaces.find(
|
||||
savedWorkspaceColor = $usersWorkspaceStore?.workspaces.find(
|
||||
(w) => w.id === $workspaceStore
|
||||
)?.color
|
||||
workspaceColor = savedWorkspaceColor
|
||||
|
||||
Reference in New Issue
Block a user