Skip to content
Merged
Show file tree
Hide file tree
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: PR comments
  • Loading branch information
AishDani committed Apr 29, 2024
commit bd87308f34ed48ae46da6f83bf4dd60ca4b5b40f
4 changes: 2 additions & 2 deletions ui/src/components/LegacyCms/Actions/LoadSelectCms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const LoadSelectCms = (props: LoadSelectCmsProps) => {
}
// Filter CMS Data
const filterCMSData = async (searchText: string) => {
const { all_cms = [] } = migrationData.legacyCMSData;
const { all_cms = [] } = migrationData?.legacyCMSData || {};
const cmsType = await getCmsType(); // Fetch the specific CMS type

let filteredCmsData: ICMSType[] = [];
Expand Down Expand Up @@ -186,7 +186,7 @@ const LoadSelectCms = (props: LoadSelectCmsProps) => {
<Line type="solid" />
</div> */}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this commented code if not required

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kept for future use case ( as per my understanding if we are showing only the card for cms which user has given in config of upload service, then search will not be useful)

<div className="col-12">
{validateArray(cmsData) ? (
{cmsData && validateArray(cmsData) ? (
<div className="service_list">
{cmsData?.map((data: ICMSType) => (
<Card
Expand Down
1 change: 0 additions & 1 deletion ui/src/components/LegacyCms/Actions/LoadUploadFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ const LoadUploadFile = (props: LoadUploadFileProps) => {
}
}
updateNewMigrationData(newMigrationDataObj);
console.log(newMigrationData);


props.handleStepChange(props.currentStep, true);
Expand Down
12 changes: 6 additions & 6 deletions ui/src/components/LegacyCms/Summary/UploadFileSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ interface Props {
const FileComponent : React.FC<Props>= ({fileDetails}) => {
return (
<div className='col-11'>
<p className="summary-title">Is Local Path: {fileDetails.isLocalPath ? 'Yes' : 'No'}</p>
<p className="summary-title">CMS Type: {fileDetails.cmsType}</p>
<p className="summary-title">Local Path: {fileDetails.localPath}</p>
<p className="summary-title">AWS Region: {fileDetails.awsData.awsRegion}</p>
<p className="summary-title">Bucket Name: {fileDetails.awsData.bucketName}</p>
<p className="summary-title">Bucket Key: {fileDetails.awsData.buketKey}</p>
<p className="summary-title">Is Local Path: {fileDetails?.isLocalPath ? 'Yes' : 'No'}</p>
<p className="summary-title">CMS Type: {fileDetails?.cmsType}</p>
<p className="summary-title">Local Path: {fileDetails?.localPath}</p>
<p className="summary-title">AWS Region: {fileDetails?.awsData?.awsRegion}</p>
<p className="summary-title">Bucket Name: {fileDetails?.awsData?.bucketName}</p>
<p className="summary-title">Bucket Key: {fileDetails?.awsData?.buketKey}</p>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add validation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

);

Expand Down