🚸 (condition) Don't show value in node content if operator is "set" or "empty"
This commit is contained in:
@@ -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>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user