@@ -65,7 +65,7 @@ interface GetStartedModalProps {
6565 handleOpen : ( ) => void ;
6666 stepsData : StepData [ ] ;
6767 profileData : ProfileData ;
68- useUpdateUserPrefMutation : ( ) => [ ( arg : { mapObject : any } ) => void , any ] ;
68+ useUpdateUserPrefMutation : any ;
6969 useGetOrgsQuery : any ;
7070 currentOrgId : string ;
7171 useGetUserOrgRolesQuery : any ;
@@ -74,6 +74,7 @@ interface GetStartedModalProps {
7474 isAssignUserRolesAllowed : boolean ;
7575 useLazyGetTeamsQuery : any ;
7676 embedDesignPath : string ;
77+ isFromMeshery : boolean ;
7778}
7879
7980const Loading : React . FC < LoadingProps > = ( { showModal, handleClose, style } ) => {
@@ -164,7 +165,8 @@ const GetStartedModal: React.FC<GetStartedModalProps> = ({
164165 useNotificationHandlers,
165166 isAssignUserRolesAllowed,
166167 useLazyGetTeamsQuery,
167- embedDesignPath
168+ embedDesignPath,
169+ isFromMeshery
168170} ) => {
169171 const [ openModal , setOpenModal ] = useState < boolean > ( false ) ;
170172 const [ clicked , setClicked ] = useState < number | undefined > ( undefined ) ;
@@ -191,9 +193,14 @@ const GetStartedModal: React.FC<GetStartedModalProps> = ({
191193 : [ ...completedSteps , id ]
192194 }
193195 } ;
194- updatePref ( {
195- mapObject : completeWelcome
196- } ) ;
196+ // different api use for the cloud and meshery
197+ if ( isFromMeshery ) {
198+ updatePref ( completeWelcome ) ;
199+ } else {
200+ updatePref ( {
201+ mapObject : completeWelcome
202+ } ) ;
203+ }
197204 if ( id === 3 ) {
198205 setInviteModal ( true ) ;
199206 } else {
0 commit comments