From fbf166f1c484d22778773dfbd66d865aab33cbce Mon Sep 17 00:00:00 2001 From: Abd-Rahman-1999 Date: Thu, 6 Jun 2024 14:32:27 +0530 Subject: [PATCH] fix : null value issue in cell edit menu --- .../QueryEditors/TooljetDatabase/DropDownSelect.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/Editor/QueryManager/QueryEditors/TooljetDatabase/DropDownSelect.jsx b/frontend/src/Editor/QueryManager/QueryEditors/TooljetDatabase/DropDownSelect.jsx index 60542a6d94..c5f8f7c694 100644 --- a/frontend/src/Editor/QueryManager/QueryEditors/TooljetDatabase/DropDownSelect.jsx +++ b/frontend/src/Editor/QueryManager/QueryEditors/TooljetDatabase/DropDownSelect.jsx @@ -242,7 +242,7 @@ const DropDownSelect = ({ style={{ position: 'relative', left: '-10px', - top: selected.label === null ? '0px' : '2px', + top: selected.label === null || selected.label === undefined ? '0px' : '2px', paddingLeft: '10px', paddingBottom: '4px', }} @@ -253,16 +253,16 @@ const DropDownSelect = ({ > - {selected.label === null ? 'Null' : selected.label} + {selected.label === null || selected.label === undefined ? 'Null' : selected.label} ) : (