diff --git a/src/datasource/components/ConfigEditor.tsx b/src/datasource/components/ConfigEditor.tsx index d8a13ee03..380c708a9 100644 --- a/src/datasource/components/ConfigEditor.tsx +++ b/src/datasource/components/ConfigEditor.tsx @@ -151,7 +151,7 @@ export const ConfigEditor = (props: Props) => { width={40} placeholder="Password" isConfigured={options.secureJsonFields && options.secureJsonFields.password} - onReset={() => resetSecureJsonField('password', options, onOptionsChange)} + onReset={resetSecureJsonField('password', options, onOptionsChange)} onBlur={secureJsonDataChangeHandler('password', options, onOptionsChange)} /> @@ -465,7 +465,7 @@ const resetSecureJsonField = value: DataSourceSettings, onChange: Props['onOptionsChange'] ) => - (event: React.SyntheticEvent) => { + () => { onChange({ ...value, secureJsonFields: {