Skip to content

Commit 722a599

Browse files
committed
fix:resolved the bug [CMG-414] and added tooltip content to fetch icon based on content model type
1 parent 5a1d8df commit 722a599

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/src/components/ContentMapper/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,7 +1918,7 @@ const ContentMapper = forwardRef(({handleStepChange}: contentMapperProps, ref: R
19181918
...newMigrationData,
19191919
content_mapping:{
19201920
...newMigrationData?.content_mapping,
1921-
existingCT: contentTypes,
1921+
[isContentType ? 'existingCT' : 'existingGlobal']: contentTypes,
19221922
content_type_mapping : updatedContentTypeMapping
19231923

19241924
}
@@ -2329,7 +2329,9 @@ const ContentMapper = forwardRef(({handleStepChange}: contentMapperProps, ref: R
23292329
component: (
23302330
<div className='d-flex align-items-center'>
23312331
{!isNewStack && (
2332-
<Tooltip content={'Fetch content type'} position="left">
2332+
<Tooltip content={isContentType ? 'Fetch contentstack content type'
2333+
: 'Fetch contentstack global fields'
2334+
} position="left">
23332335
<Button buttonType="light" icon={onlyIcon ? "v2-FetchTemplate" : ''}
23342336
version="v2" onlyIcon={true} onlyIconHoverColor={'primary'}
23352337
size='small' onClick={handleFetchContentType}>

0 commit comments

Comments
 (0)