Skip to content

Commit

Permalink
less verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
bobular committed Sep 12, 2023
1 parent c065810 commit c5fab93
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ export function BubbleMarkerConfigurationMenu({
key,
{
...constraint[key],
allowedTypes: constraint[key]?.allowedTypes
? constraint[key]?.allowedTypes?.filter((t) => t !== 'date')
: ['string', 'number', 'integer'],
allowedTypes: constraint[key]?.allowedTypes?.filter(
(t) => t !== 'date'
) ?? ['string', 'number', 'integer'],
} as DataElementConstraint, // assertion seems required due to spread operator
])
);
Expand Down

0 comments on commit c5fab93

Please sign in to comment.