Skip to content

Commit 2e6b7f7

Browse files
committed
Disable the content types if existing stack selected and content type with same uid is present
1 parent f0bdda0 commit 2e6b7f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/components/ContentMapper/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1815,7 +1815,7 @@ const ContentMapper = forwardRef(({handleStepChange}: contentMapperProps, ref: R
18151815

18161816
const adjustedOption = options?.map((option) => ({
18171817
...option,
1818-
isDisabled: contentTypeMapped && Object.values(contentTypeMapped).includes(option?.label)
1818+
isDisabled: filteredContentTypes?.some((ct) => ct?.contentstackUid === option?.id) || (contentTypeMapped && Object.values(contentTypeMapped).includes(option?.label))
18191819
}));
18201820

18211821
// Function to toggle filter panel

0 commit comments

Comments
 (0)