diff --git a/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/Editors.jsx b/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/Editors.jsx index 35a82d5ac..6dff51e15 100644 --- a/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/Editors.jsx +++ b/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/Editors.jsx @@ -264,7 +264,7 @@ export function NumberEditor({row, column, onRowChange, onClose}) { value={value} onChange={(e)=>{ if(column.can_edit) { - onRowChange({ ...row, [column.key]: e.target.value }); + onRowChange({ ...row, [column.key]: (e.target.value == '' ? null : e.target.value)}); } }} onBlur={onBlur} diff --git a/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/Formatters.jsx b/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/Formatters.jsx index 682a2e0f8..147c50869 100644 --- a/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/Formatters.jsx +++ b/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/Formatters.jsx @@ -18,13 +18,13 @@ const useStyles = makeStyles((theme)=>({ } })); -function NullAndDefaultFormatter({value, column, children}) { +function NullAndDefaultFormatter({value, column, children, style}) { const classes = useStyles(); if (_.isUndefined(value) && column.has_default_val) { - return [default]; + return