From 6b52a475e311fdccb0b515ce06c4df01f0740ad3 Mon Sep 17 00:00:00 2001 From: Gareth Dawson Date: Fri, 17 Nov 2023 11:38:51 +0000 Subject: [PATCH] fix --- src/datasource/components/ConfigEditor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: {