mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-14 21:25:21 +00:00
Merge pull request #20317 from overleaf/em-github-sync-errors
Replace alerts with notifications in the github-sync modal GitOrigin-RevId: 772add41b2d525353dc0c0362ebc64c4a023e2c3
This commit is contained in:
parent
af6ffdcf7c
commit
889fa1a3c3
1 changed files with 5 additions and 1 deletions
|
@ -19,7 +19,11 @@ export const useScope = (scope: Record<string, unknown>) => {
|
|||
} catch {
|
||||
// allowed not to exist
|
||||
}
|
||||
window.overleaf.unstable.store.set(path, merge(existingValue, value))
|
||||
if (typeof existingValue === 'object' && typeof value === 'object') {
|
||||
window.overleaf.unstable.store.set(path, merge(existingValue, value))
|
||||
} else {
|
||||
window.overleaf.unstable.store.set(path, value)
|
||||
}
|
||||
}
|
||||
}
|
||||
}, [])
|
||||
|
|
Loading…
Add table
Reference in a new issue