diff --git a/src/datasource-zabbix/components/ConfigEditor.tsx b/src/datasource-zabbix/components/ConfigEditor.tsx index a85aa29..04b0604 100644 --- a/src/datasource-zabbix/components/ConfigEditor.tsx +++ b/src/datasource-zabbix/components/ConfigEditor.tsx @@ -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, }, }); };