Skip to content

Commit 6ea6d34

Browse files
committed
[-] remove redundant onerror
1 parent 6e241c3 commit 6ea6d34

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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)