@@ -760,6 +760,10 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
760760 }
761761
762762 setItemStatusMap ( itemStatusMap ) ;
763+ setLoading ( true ) ;
764+
765+
766+ // console.info('loading', loading);
763767
764768 const { data } = await getFieldMapping ( contentTypeId || '' , 0 , 1000 , searchText || '' , projectId ) ;
765769
@@ -769,6 +773,7 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
769773 }
770774
771775 setItemStatusMap ( { ...itemStatusMap } ) ;
776+ setLoading ( false ) ;
772777
773778 const validTableData = data ?. fieldMapping ?. filter ( ( field : FieldMapType ) => field ?. otherCmsType !== undefined ) ;
774779
@@ -777,7 +782,7 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
777782 setSelectedEntries ( validTableData ?? [ ] ) ;
778783 setTotalCounts ( validTableData ?. length ) ;
779784 setInitialRowSelectedData ( validTableData ?. filter ( ( item : FieldMapType ) => ! item ?. isDeleted ) )
780- setIsLoading ( false ) ;
785+ // setIsLoading(false);
781786 generateSourceGroupSchema ( validTableData ) ;
782787 } catch ( error ) {
783788 console . error ( 'fetchData -> error' , error ) ;
@@ -800,7 +805,7 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
800805 }
801806
802807 setItemStatusMap ( { ...itemStatusMapCopy } ) ;
803- setLoading ( true ) ;
808+ // setLoading(true);
804809
805810 const { data } = await getFieldMapping ( contentTypeUid || '' , skip , limit , searchText || '' , projectId ) ;
806811
@@ -2645,20 +2650,20 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
26452650 initialRowSelectedData = { initialRowSelectedData }
26462651 initialSelectedRowIds = { rowIds }
26472652 itemSize = { 80 }
2648- v2Features = { {
2649- isNewEmptyState : true
2650- } }
2651- customEmptyState = {
2652- < EmptyState
2653- forPage = "list"
2654- heading = { < div className = "empty_search_heading" > No Fields available</ div > }
2655- moduleIcon = "NoSearchResult"
2656- description = "Try changing the search query to find what you are looking for."
2657- version = "v2"
2658- testId = "no-results-found-page"
2659- className = "custom-empty-state"
2660- />
2661- }
2653+ // v2Features={{
2654+ // isNewEmptyState: true
2655+ // }}
2656+ // customEmptyState={
2657+ // <EmptyState
2658+ // forPage="list"
2659+ // heading={<div className="empty_search_heading">No Fields available</div>}
2660+ // moduleIcon="NoSearchResult"
2661+ // description="Try changing the search query to find what you are looking for."
2662+ // version="v2"
2663+ // testId="no-results-found-page"
2664+ // className="custom-empty-state"
2665+ // />
2666+ // }
26622667 withExportCta = { {
26632668 component : (
26642669 < div className = 'd-flex align-items-center' >
0 commit comments