Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
refactor:removed commented code
  • Loading branch information
AishDani committed May 17, 2024
commit 4f4a3b3018cfcc2d05337c3bfe39f2c013f44904
14 changes: 1 addition & 13 deletions ui/src/components/LegacyCms/Actions/LoadSelectCms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const LoadSelectCms = (props: LoadSelectCmsProps) => {
}
});

// await updateLegacyCMSData(selectedOrganisation?.value, projectId, { legacy_cms: cms?.cms_id });

if (!isEmptyString(cms?.title)) {
props?.handleStepChange(props?.currentStep);
}
Expand Down Expand Up @@ -160,18 +160,6 @@ const LoadSelectCms = (props: LoadSelectCmsProps) => {
}
}, [cmsType, selectedCard]);

// useEffect(() => {
// const getCmsType = async () => {
// const res: any = await fileValidation();
// const cms = res?.data?.file_details?.cmsType?.toLowerCase();
// if(isEmptyString(cmsType || '')){
// setCmsType(cms);
// }
// filterCMSData(cms);
// return cmsType;
// };
// //getCmsType();
// }, [cmsType]);

return (
<div>
Expand Down