fix(ui): error when collapsing sidebar groups (#9393)
Fixes https://discord.com/channels/967097582721572934/1308933812914229368/1308933812914229368 
This commit is contained in:
@@ -99,7 +99,9 @@ export const PreferencesProvider: React.FC<{ children?: React.ReactNode }> = ({
|
|||||||
typeof newValue === 'object'
|
typeof newValue === 'object'
|
||||||
) {
|
) {
|
||||||
// merge the value with any existing preference for the key
|
// merge the value with any existing preference for the key
|
||||||
newValue = deepMergeSimple(currentPreference, newValue)
|
if (currentPreference) {
|
||||||
|
newValue = deepMergeSimple(currentPreference, newValue)
|
||||||
|
}
|
||||||
|
|
||||||
if (dequal(newValue, currentPreference)) {
|
if (dequal(newValue, currentPreference)) {
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user