From f9d881ffa65f5aa8524ed2742e1fae87e5bdb4b7 Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Fri, 8 Nov 2024 18:09:39 +0530 Subject: [PATCH] Fix GUI test cases failing because of previous commit --- web/pgadmin/static/js/validators.js | 2 +- .../static/js/components/sections/ResultSetToolbar.jsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/static/js/validators.js b/web/pgadmin/static/js/validators.js index 2dc1cde43..25455d4ba 100644 --- a/web/pgadmin/static/js/validators.js +++ b/web/pgadmin/static/js/validators.js @@ -16,7 +16,7 @@ export function minMaxValidator(label, value, minValue, maxValue) { if((_.isUndefined(value) || _.isNull(value) || String(value) === '')) return null; - if(isNaN(minValue) || isNaN(maxValue)) { + if((!_.isUndefined(minValue) && isNaN(minValue)) || (!_.isUndefined(maxValue) && isNaN(maxValue))) { return pgAdmin.Browser.messages.INVALID_MIN_MAX; } else if (!_.isUndefined(minValue) && (value < minValue || value === '-')) { return sprintf(pgAdmin.Browser.messages.MUST_GR_EQ, label, minValue); diff --git a/web/pgadmin/tools/sqleditor/static/js/components/sections/ResultSetToolbar.jsx b/web/pgadmin/tools/sqleditor/static/js/components/sections/ResultSetToolbar.jsx index 558b57c82..c11c16d21 100644 --- a/web/pgadmin/tools/sqleditor/static/js/components/sections/ResultSetToolbar.jsx +++ b/web/pgadmin/tools/sqleditor/static/js/components/sections/ResultSetToolbar.jsx @@ -443,9 +443,10 @@ export function ResultSetToolbar({query, canEdit, totalRowCount, pagination, all ) } + {totalRowCount > 0 && - + }