Skip to content

Commit

Permalink
Allow resets for disabled connections (#19864)
Browse files Browse the repository at this point in the history
* Allow resets for disabled connections
Co-authored-by: KC <krishna@airbyte.io>
  • Loading branch information
alovew authored Nov 29, 2022
1 parent 865b580 commit a970596
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,8 @@ export const ConnectionReplicationTab: React.FC = () => {
});
if (result.type !== "canceled") {
// Save the connection taking into account the correct skipReset value from the dialog choice.
// We also want to skip the reset sync if the connection is not in an "active" status
await saveConnection(formValues, {
skipReset: !result.reason || connection.status !== "active",
skipReset: !result.reason,
catalogHasChanged,
});
} else {
Expand All @@ -143,7 +142,6 @@ export const ConnectionReplicationTab: React.FC = () => {
connection.connectionId,
connection.catalogDiff,
connection.operations,
connection.status,
connection.syncCatalog.streams,
connectionService,
formatMessage,
Expand Down

0 comments on commit a970596

Please sign in to comment.