2
0

🚸 (condition) Don't show value in node content if operator is "set" or "empty"

This commit is contained in:
Baptiste Arnaud
2023-10-07 08:08:56 +02:00
parent 073654e1e0
commit 224a08b932

View File

@@ -35,11 +35,14 @@ export const ConditionContent = ({
{parseComparisonOperatorSymbol(comparison.comparisonOperator)} {parseComparisonOperatorSymbol(comparison.comparisonOperator)}
</Text> </Text>
)} )}
{comparison?.value && ( {comparison?.value &&
<Tag bgColor={comparisonValueBg} size="sm"> comparison.comparisonOperator !== ComparisonOperators.IS_SET &&
{comparison.value} comparison.comparisonOperator !==
</Tag> ComparisonOperators.IS_EMPTY && (
)} <Tag bgColor={comparisonValueBg} size="sm">
{comparison.value}
</Tag>
)}
{idx === condition.comparisons.length - 1 && displaySemicolon && ( {idx === condition.comparisons.length - 1 && displaySemicolon && (
<Text fontSize={size}>:</Text> <Text fontSize={size}>:</Text>
)} )}