Skip to content

Commit 83b779e

Browse files
committed
fix: TagDetails - isPropagateDisabled prop not being used -> added logic to disable propagate change if it is true
1 parent 7474b6e commit 83b779e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/CustomTagSelector/TagDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const TagDetails = ({
6060
{!hidePropagateTag && (
6161
<div
6262
className={`dc__border h-30 pl-4 pr-4 br-4 mr-8 pointer ${tagData.propagate ? 'bcn-7' : ''} ${tagData.key.startsWith('devtron.ai/') ? 'cursor-not-allowed bcn-1' : ''}`}
63-
onClick={propagateTagToResource}
63+
onClick={!tagData?.isPropagateDisabled ? propagateTagToResource : null}
6464
data-testid={`propagate-tag-${index}`}
6565
>
6666
<InjectTag className={`icon-dim-20 mt-4 ${tagData.propagate ? 'scn-0' : ''}`} />

0 commit comments

Comments
 (0)