diff --git a/src/datasource/components/ConfigEditor.tsx b/src/datasource/components/ConfigEditor.tsx index f5eea76f..afa8e375 100644 --- a/src/datasource/components/ConfigEditor.tsx +++ b/src/datasource/components/ConfigEditor.tsx @@ -166,7 +166,7 @@ export const ConfigEditor = (props: Props) => { width={40} placeholder="API token" isConfigured={options.secureJsonFields && options.secureJsonFields.apiToken} - onReset={() => resetSecureJsonField('apiToken', options, onOptionsChange)} + onReset={resetSecureJsonField('apiToken', options, onOptionsChange)} onBlur={secureJsonDataChangeHandler('apiToken', options, onOptionsChange)} />