Skip to content

Commit

Permalink
Hopefully fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
fallaciousreasoning committed Dec 19, 2023
1 parent f203cf9 commit 4cae0a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/SettingsView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
})
onMount(() => {
if (!$settings.layers) $settings.layers = {}
for (const layer of layerDefinitions) {
if (!$settings.layers[layer.name]) {
$settings.layers[layer.name] = {
cache: false,
cache: true,
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/stores/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const createStore = () => {

// Load settings from disk.
loadSettings().then(settings => {
settings = {...defaultValue, ...settings }
if (settings)
set(settings);
resolve(settings)
Expand Down

1 comment on commit 4cae0a7

@vercel
Copy link

@vercel vercel bot commented on 4cae0a7 Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.