🐛 (sheets) Fix empty and unique filter

This commit is contained in:
Baptiste Arnaud
2023-05-26 10:46:40 +02:00
parent 75f9da0a4f
commit 154271c7f2
4 changed files with 41 additions and 20 deletions

View File

@@ -41,13 +41,14 @@ export const RowsFilterComparisonItem = ({
items={Object.values(ComparisonOperators)}
placeholder="Select an operator"
/>
{item.comparisonOperator !== ComparisonOperators.IS_SET && (
<TextInput
defaultValue={item.value ?? ''}
onChange={handleChangeValue}
placeholder="Type a value..."
/>
)}
{item.comparisonOperator !== ComparisonOperators.IS_SET &&
item.comparisonOperator !== ComparisonOperators.IS_EMPTY && (
<TextInput
defaultValue={item.value ?? ''}
onChange={handleChangeValue}
placeholder="Type a value..."
/>
)}
</Stack>
)
}