Skip to content

Commit

Permalink
fix: casting issue in FE logic for delete attribute (#4398)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell authored Jul 26, 2024
1 parent 45ce495 commit cbe0a0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/web/components/modals/Rule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ export default class Rule extends PureComponent<{

// remove append if one was added

const formattedValue = value === null ? null : `${value}`
const formattedValue =
prop === 'value' && value !== null ? `${value}` : value
const invalidPercentageSplit =
prop === 'value' &&
rules[i].operator === 'PERCENTAGE_SPLIT' &&
Expand Down

0 comments on commit cbe0a0c

Please sign in to comment.