Skip to content

Commit

Permalink
Merge pull request #1750 from grafana/gareth/config-password-reset
Browse files Browse the repository at this point in the history
fix reset bug in config page
  • Loading branch information
gwdawson authored Nov 20, 2023
2 parents 17d71f6 + 6b52a47 commit fdb72f1
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 fdb72f1

Please sign in to comment.