Skip to content

Commit

Permalink
ws color: separate logic from reactivity condition (#5046)
Browse files Browse the repository at this point in the history
* fix workspace color picker issue

* removing useless reactive statement

* some ui fixes

* separate logic from reactivity condition
  • Loading branch information
alpetric authored Jan 10, 2025
1 parent 089e698 commit 03450bd
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 03450bd

Please sign in to comment.