mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-22 03:17:40 +03:00
Fix select filter eq (#8594)
Fix https://discord.com/channels/1130383047699738754/1308384008043757640/1308384008043757640
This commit is contained in:
parent
eeb4f2d329
commit
ba1c094775
@ -109,6 +109,7 @@ export type PhonesFilter = {
|
||||
export type SelectFilter = {
|
||||
is?: IsFilter;
|
||||
in?: string[];
|
||||
eq?: string;
|
||||
};
|
||||
|
||||
export type MultiSelectFilter = {
|
||||
|
@ -18,6 +18,9 @@ export const isMatchingSelectFilter = ({
|
||||
return value !== null;
|
||||
}
|
||||
}
|
||||
case selectFilter.eq !== undefined: {
|
||||
return value === selectFilter.eq;
|
||||
}
|
||||
default: {
|
||||
throw new Error(
|
||||
`Unexpected value for select filter : ${JSON.stringify(selectFilter)}`,
|
||||
|
Loading…
Reference in New Issue
Block a user