Skip to content

Commit a45d2f4

Browse files
committed
Merge branch 'dev' of github.com:contentstack/migration-v2-node-server into feature/dropdown-field-choices
2 parents ba038b3 + 1613697 commit a45d2f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/components/LegacyCms/Actions/LoadFileFormat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ const LoadFileFormat = (props: LoadFileFormatProps) => {
8989
fileformat_id: fileFormat,
9090
group_name: fileFormat,
9191
isactive: true,
92-
title: fileFormat === 'zip' ? fileFormat?.charAt(0)?.toUpperCase() + fileFormat?.slice(1) : fileFormat?.toUpperCase()
92+
title: fileFormat === 'zip' ? fileFormat?.charAt?.(0)?.toUpperCase() + fileFormat?.slice?.(1) : fileFormat?.toUpperCase()
9393
}
9494

9595

96-
setFileIcon(fileFormat === 'zip' ? fileFormat?.charAt(0).toUpperCase() + fileFormat.slice(1) : fileFormat?.toUpperCase());
96+
setFileIcon(fileFormat === 'zip' ? fileFormat?.charAt?.(0).toUpperCase() + fileFormat?.slice?.(1) : fileFormat?.toUpperCase());
9797

9898
}
9999
} catch (error) {

0 commit comments

Comments
 (0)