relax color rule validation (#67759)
This commit is contained in:
parent
f8759d4571
commit
884704d847
1 changed files with 2 additions and 1 deletions
|
@ -66,6 +66,7 @@ const backgroundColorRulesItems = schema.object({
|
|||
id: stringOptionalNullable,
|
||||
background_color: stringOptionalNullable,
|
||||
color: stringOptionalNullable,
|
||||
operator: stringOptionalNullable,
|
||||
});
|
||||
|
||||
const gaugeColorRulesItems = schema.object({
|
||||
|
@ -73,7 +74,7 @@ const gaugeColorRulesItems = schema.object({
|
|||
text: stringOptionalNullable,
|
||||
id: stringOptionalNullable,
|
||||
operator: stringOptionalNullable,
|
||||
value: schema.number(),
|
||||
value: schema.maybe(schema.nullable(schema.number())),
|
||||
});
|
||||
const metricsItems = schema.object({
|
||||
field: stringOptionalNullable,
|
||||
|
|
Loading…
Reference in a new issue