Bind correct store

This commit is contained in:
Sidharth Vinod
2022-06-28 14:36:59 +05:30
parent f95c42db1e
commit a02bd4b3ba
4 changed files with 1 additions and 9 deletions
-1
View File
@@ -49,7 +49,6 @@
}
} catch (e) {
console.log('view fail', e);
// errorStore.set(e);
error = true;
}
});
-1
View File
@@ -54,5 +54,4 @@ export const loadDataFromUrl = async (): Promise<void> => {
updateDiagram: true,
updateEditor: true
});
// window.location.search = '';
};
-4
View File
@@ -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);
}
+1 -3
View File
@@ -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>