Thomas Trompette 2024-11-19 18:12:08 +01:00 committed by GitHub
parent eeb4f2d329
commit ba1c094775
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -109,6 +109,7 @@ export type PhonesFilter = {
export type SelectFilter = { export type SelectFilter = {
is?: IsFilter; is?: IsFilter;
in?: string[]; in?: string[];
eq?: string;
}; };
export type MultiSelectFilter = { export type MultiSelectFilter = {

View File

@ -18,6 +18,9 @@ export const isMatchingSelectFilter = ({
return value !== null; return value !== null;
} }
} }
case selectFilter.eq !== undefined: {
return value === selectFilter.eq;
}
default: { default: {
throw new Error( throw new Error(
`Unexpected value for select filter : ${JSON.stringify(selectFilter)}`, `Unexpected value for select filter : ${JSON.stringify(selectFilter)}`,