chart fix

This commit is contained in:
Jan Prochazka 2021-11-22 19:25:39 +01:00
parent c3587ff4cc
commit 4426898e90

View File

@ -47,6 +47,7 @@
try {
const columns = await loadChartStructure(driver, conid, database, sql);
availableColumnNames = columns;
// configStore.update(x => ({ ...x, labelColumn: availableColumnNames[0] }));
} catch (err) {
console.error(err);
error = err.message;
@ -128,7 +129,7 @@
label="Label column"
name="labelColumn"
isNative
options={[{ value: '' }, ...availableColumnNames.map(col => ({ value: col, label: col }))]}
options={availableColumnNames.map(col => ({ value: col, label: col }))}
/>
{/if}