Skip to content

Commit

Permalink
default page index to 1 when set to 0
Browse files Browse the repository at this point in the history
refs elastic/pull/129099/commits/b688d505b460964117ba1a303b417760b13a2888
  • Loading branch information
ashokaditya committed Apr 20, 2022
1 parent 82e6df8 commit f52f60b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import { MANAGEMENT_DEFAULT_PAGE_SIZE, MANAGEMENT_PAGE_SIZE_OPTIONS } from '../c
* @param value
* @param defaultValue
*/
export const isDefaultOrMissing = <T>(value: T | undefined, defaultValue: T) => {
return value === undefined || value === defaultValue;
export const isDefaultOrMissing = <T>(value: T | undefined | 0, defaultValue: T) => {
return value === undefined || value === defaultValue || value === 0;
};

/**
Expand Down

0 comments on commit f52f60b

Please sign in to comment.