diff --git a/desktop/flipper-plugin/src/ui/data-table/DataTableDefaultPowerSearchOperators.tsx b/desktop/flipper-plugin/src/ui/data-table/DataTableDefaultPowerSearchOperators.tsx index 774e73174..75b2b9590 100644 --- a/desktop/flipper-plugin/src/ui/data-table/DataTableDefaultPowerSearchOperators.tsx +++ b/desktop/flipper-plugin/src/ui/data-table/DataTableDefaultPowerSearchOperators.tsx @@ -21,6 +21,11 @@ export const dataTablePowerSearchOperators = { key: 'string_contains', valueType: 'STRING', }), + string_not_contains: () => ({ + label: 'does not contain', + key: 'string_not_contains', + valueType: 'STRING', + }), } satisfies { [key: string]: (...args: any[]) => OperatorConfig; }; @@ -34,4 +39,8 @@ export const dataTablePowerSearchOperatorProcessorConfig = { (value as string) .toLowerCase() .includes((searchValue as string).toLowerCase()), + string_not_contains: (operator, searchValue, value) => + !(value as string) + .toLowerCase() + .includes((searchValue as string).toLowerCase()), } satisfies PowerSearchOperatorProcessorConfig;