diff --git a/src/pages/workspace/tags/WorkspaceViewTagsPage.tsx b/src/pages/workspace/tags/WorkspaceViewTagsPage.tsx index b5c4bfa9d038..fae17a847c98 100644 --- a/src/pages/workspace/tags/WorkspaceViewTagsPage.tsx +++ b/src/pages/workspace/tags/WorkspaceViewTagsPage.tsx @@ -232,6 +232,10 @@ function WorkspaceViewTagsPage({route}: WorkspaceViewTagsProps) { ); }; + if (!!currentPolicyTag?.required && !Object.values(currentPolicyTag?.tags ?? {}).some((tag) => tag.enabled)) { + Tag.setPolicyTagsRequired(policyID, false, route.params.orderWeight); + } + const navigateToEditTag = () => { Navigation.navigate(ROUTES.WORKSPACE_EDIT_TAGS.getRoute(route.params.policyID, currentPolicyTag?.orderWeight)); };