mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-09 23:15:58 -06:00
Fix GUI test cases failing because of previous commit
This commit is contained in:
parent
6fcc4ae6a2
commit
f9d881ffa6
@ -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);
|
||||
|
@ -443,9 +443,10 @@ export function ResultSetToolbar({query, canEdit, totalRowCount, pagination, all
|
||||
)
|
||||
}
|
||||
</Box>
|
||||
{totalRowCount > 0 &&
|
||||
<Box>
|
||||
<PaginationInputs key={JSON.stringify(pagination)} pagination={pagination} totalRowCount={totalRowCount} clearSelection={clearSelection} />
|
||||
</Box>
|
||||
</Box>}
|
||||
</StyledDiv>
|
||||
<PgMenu
|
||||
anchorRef={copyMenuRef}
|
||||
|
Loading…
Reference in New Issue
Block a user