Bind correct store
This commit is contained in:
@@ -49,7 +49,6 @@
|
||||
}
|
||||
} catch (e) {
|
||||
console.log('view fail', e);
|
||||
// errorStore.set(e);
|
||||
error = true;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -54,5 +54,4 @@ export const loadDataFromUrl = async (): Promise<void> => {
|
||||
updateDiagram: true,
|
||||
updateEditor: true
|
||||
});
|
||||
// window.location.search = '';
|
||||
};
|
||||
|
||||
@@ -68,10 +68,6 @@ export const stateStore: Readable<ValidatedState> = derived([inputStateStore], (
|
||||
message: e.str
|
||||
};
|
||||
processed.errorMarkers = [marker];
|
||||
// Clear all previous errors before this error.
|
||||
// errorMarkers = errorMarkers.filter(
|
||||
// (m) => m.startLineNumber >= marker.startLineNumber && m.startColumn >= marker.startColumn
|
||||
// );
|
||||
} catch (err) {
|
||||
console.error('Error without line helper', err);
|
||||
}
|
||||
|
||||
@@ -12,8 +12,6 @@
|
||||
import type { EditorUpdateEvent, State, Tab, DocConfig } from '$lib/types';
|
||||
import { base } from '$app/paths';
|
||||
|
||||
// stateStore; // Weird fix for error > serializedState is not defined. Treeshaking?
|
||||
|
||||
type Modes = 'code' | 'config';
|
||||
type Languages = 'mermaid' | 'json';
|
||||
|
||||
@@ -153,7 +151,7 @@
|
||||
type="checkbox"
|
||||
class="toggle {$stateStore.autoSync ? 'btn-secondary' : 'toggle-primary'} ml-1"
|
||||
id="autoSync"
|
||||
bind:checked={$stateStore.autoSync} />
|
||||
bind:checked={$inputStateStore.autoSync} />
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user