Skip to content

Commit

Permalink
Don't navigate after saving policy settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tgolen committed Oct 8, 2021
1 parent 318d90a commit cc12068
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libs/actions/Policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ function update(policyID, values) {

const updatedValues = {...values, ...{isPolicyUpdating: false}};
Onyx.merge(`${ONYXKEYS.COLLECTION.POLICY}${policyID}`, updatedValues);
Navigation.dismissModal();
}).catch(() => {
Onyx.merge(`${ONYXKEYS.COLLECTION.POLICY}${policyID}`, {isPolicyUpdating: false});
const errorMessage = translateLocal('workspace.editor.genericFailureMessage');
Expand Down

0 comments on commit cc12068

Please sign in to comment.