Skip to content

Commit

Permalink
Merge pull request #43043 from allroundexperts/fix-42789
Browse files Browse the repository at this point in the history
fix: add redirect when policy connection is enabled
  • Loading branch information
thienlnam authored Jun 6, 2024
2 parents da2949f + 69aae55 commit 6db7f55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/actions/Policy/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3256,6 +3256,10 @@ function enablePolicyConnections(policyID: string, enabled: boolean) {
const parameters: EnablePolicyConnectionsParams = {policyID, enabled};

API.write(WRITE_COMMANDS.ENABLE_POLICY_CONNECTIONS, parameters, onyxData);

if (enabled && getIsNarrowLayout()) {
navigateWhenEnableFeature(policyID);
}
}

function enablePolicyReportFields(policyID: string, enabled: boolean) {
Expand Down

0 comments on commit 6db7f55

Please sign in to comment.