Skip to content

Commit

Permalink
fix(ui): error when collapsing sidebar groups (#9393)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioGr authored Nov 21, 2024
1 parent 9470f9b commit 90e37fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ui/src/providers/Preferences/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ export const PreferencesProvider: React.FC<{ children?: React.ReactNode }> = ({
typeof newValue === 'object'
) {
// merge the value with any existing preference for the key
newValue = deepMergeSimple(currentPreference, newValue)
if (currentPreference) {
newValue = deepMergeSimple(currentPreference, newValue)
}

if (dequal(newValue, currentPreference)) {
return
Expand Down

0 comments on commit 90e37fe

Please sign in to comment.