Skip to content

Commit

Permalink
cardinality can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
madirey committed Mar 1, 2021
1 parent 493411d commit d6dc1e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ export const threshold = t.intersection([
thresholdField,
t.exact(
t.partial({
cardinality: t.array(thresholdCardinalityField),
cardinality: t.union([t.array(thresholdCardinalityField), t.null]),
})
),
// To avoid breaking pre-existing 7.12 builds
Expand All @@ -513,7 +513,7 @@ export const thresholdNormalized = t.intersection([
thresholdFieldNormalized,
t.exact(
t.partial({
cardinality: t.array(thresholdCardinalityField),
cardinality: t.union([t.array(thresholdCardinalityField), t.null]),
})
),
]);
Expand Down

0 comments on commit d6dc1e2

Please sign in to comment.