Skip to content

Commit

Permalink
Merge pull request #48738 from Shahidullah-Muffakir/fix/48683
Browse files Browse the repository at this point in the history
Main tag shows Required status when all subtags are disabled
  • Loading branch information
marcochavezf authored Sep 9, 2024
2 parents 89b9226 + 3193c48 commit 474d15e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/tags/WorkspaceTagsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function WorkspaceTagsPage({route}: WorkspaceTagsPageProps) {
required: policyTagList.required,
rightElement: (
<ListItemRightCaretWithLabel
labelText={policyTagList.required ? translate('common.required') : undefined}
labelText={policyTagList.required && !!Object.values(policyTagList?.tags ?? {}).some((tag) => tag.enabled) ? translate('common.required') : undefined}
shouldShowCaret={false}
/>
),
Expand Down

0 comments on commit 474d15e

Please sign in to comment.