Skip to content

Commit

Permalink
Fix #41 - Fix error in settings initiator breaking UI
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoshino committed Aug 10, 2023
1 parent f02e6dd commit eefb56c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/services/contents/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ export const selectAssetsView = writable({});
export const entryEditorSettings = writable({}, (set) => {
(async () => {
try {
const settings = (await LocalStorage.get(storageKey)) || {
const settings = {
showPreview: true,
syncScrolling: true,
selectAssetsView: { type: 'grid' },
...((await LocalStorage.get(storageKey)) || {}),
};

set(settings);
Expand Down

0 comments on commit eefb56c

Please sign in to comment.