Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gwdawson committed Nov 17, 2023
1 parent 17d71f6 commit 6b52a47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/datasource/components/ConfigEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
/>
</Field>
Expand Down Expand Up @@ -465,7 +465,7 @@ const resetSecureJsonField =
value: DataSourceSettings<ZabbixDSOptions, ZabbixSecureJSONData>,
onChange: Props['onOptionsChange']
) =>
(event: React.SyntheticEvent<HTMLButtonElement>) => {
() => {
onChange({
...value,
secureJsonFields: {
Expand Down

0 comments on commit 6b52a47

Please sign in to comment.