Skip to content

Commit f6753df

Browse files
committed
[-] remove redundant onerror
1 parent 543cc53 commit f6753df

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

internal/webui/src/pages/SourcesPage/components/SourcesGrid/components/EnabledSourceSwitch.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ export const EnabledSourceSwitch = ({ source }: EnabledSourceSwitchProps) => {
1414
editEnabled.mutate({
1515
...source,
1616
IsEnabled: value,
17-
},
18-
{ onError: () => editEnabled.reset() }
19-
);
17+
});
2018
};
2119

2220
const checked = editEnabled.isPending ? !source.IsEnabled : source.IsEnabled;

0 commit comments

Comments
 (0)