Fix query config editor
This commit is contained in:
@@ -20,6 +20,9 @@ export const ConfigEditor = (props: Props) => {
|
|||||||
...options,
|
...options,
|
||||||
jsonData: {
|
jsonData: {
|
||||||
trends: true,
|
trends: true,
|
||||||
|
trendsFrom: '',
|
||||||
|
trendsRange: '',
|
||||||
|
cacheTTL: '',
|
||||||
...options.jsonData,
|
...options.jsonData,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -198,7 +201,7 @@ const jsonDataChangeHandler = (
|
|||||||
...value,
|
...value,
|
||||||
jsonData: {
|
jsonData: {
|
||||||
...value.jsonData,
|
...value.jsonData,
|
||||||
[key]: event.currentTarget.value || (event.target as HTMLInputElement).checked,
|
[key]: event.currentTarget.value,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user