From d87e573dd4aa3c6fed58d49ea68dd94018d846a7 Mon Sep 17 00:00:00 2001 From: rikinsk Date: Mon, 15 Jul 2019 15:39:02 +0530 Subject: [PATCH] fix valid typecast logicc --- .../components/Services/Data/TableModify/ColumnEditorList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/src/components/Services/Data/TableModify/ColumnEditorList.js b/console/src/components/Services/Data/TableModify/ColumnEditorList.js index 65fda1abbc892..d1d066d032b6a 100644 --- a/console/src/components/Services/Data/TableModify/ColumnEditorList.js +++ b/console/src/components/Services/Data/TableModify/ColumnEditorList.js @@ -158,7 +158,7 @@ const ColumnEditorList = ({ if (lowerUdtName in validTypeCasts) { return validTypeCasts[lowerUdtName]; } - if (dataTypeIndexMap && Object.keys(dataTypeIndexMap).length > 0) { + if (dataTypeIndexMap && dataTypeIndexMap[lowerUdtName]) { return [ ...dataTypeIndexMap[lowerUdtName], ...dataTypeIndexMap[defaultDataTypeToCast],