Fix query config editor

This commit is contained in:
Alexander Zobnin
2020-06-01 18:38:40 +03:00
parent 48767fe479
commit df12c0443d

View File

@@ -20,6 +20,9 @@ export const ConfigEditor = (props: Props) => {
...options,
jsonData: {
trends: true,
trendsFrom: '',
trendsRange: '',
cacheTTL: '',
...options.jsonData,
},
});
@@ -198,7 +201,7 @@ const jsonDataChangeHandler = (
...value,
jsonData: {
...value.jsonData,
[key]: event.currentTarget.value || (event.target as HTMLInputElement).checked,
[key]: event.currentTarget.value,
},
});
};