solved configStore problem

This commit is contained in:
Jan Prochazka
2021-03-19 20:57:09 +01:00
parent 7b625c6073
commit dcb4c5071a
2 changed files with 14 additions and 16 deletions

View File

@@ -21,8 +21,7 @@
import _ from 'lodash';
export let data;
export let config;
export let setConfig;
export let configStore;
export let conid;
export let database;
export let sql;
@@ -31,6 +30,8 @@
let error = null;
let loadedData = null;
$: config = $configStore;
const getDriver = async () => {
const conn = await getConnectionInfo({ conid });
if (!conn) return;
@@ -61,18 +62,6 @@
};
};
const configStore = writable(config);
const changingRef = createRef(false);
$: {
if (!changingRef.get()) {
$configStore = config;
}
}
// $: {
// changingRef.set(true);
// setConfig($configStore);
// changingRef.set(false);
// }
$: {
$extensions;
if (sql && conid && database) {