mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-20 07:08:23 +03:00
fix description re-rendering for nullable object fields
This commit is contained in:
parent
4d9a9811c0
commit
e01ece624f
@ -109,7 +109,9 @@ export function FieldTemplate(props: FieldTemplateProps) {
|
|||||||
const isBoolean =
|
const isBoolean =
|
||||||
schema.type === "boolean" ||
|
schema.type === "boolean" ||
|
||||||
(Array.isArray(schema.type) && schema.type.includes("boolean"));
|
(Array.isArray(schema.type) && schema.type.includes("boolean"));
|
||||||
const isObjectField = schema.type === "object";
|
const isObjectField =
|
||||||
|
schema.type === "object" ||
|
||||||
|
(Array.isArray(schema.type) && schema.type.includes("object"));
|
||||||
const isNullableUnion = isNullableUnionSchema(schema as StrictRJSFSchema);
|
const isNullableUnion = isNullableUnionSchema(schema as StrictRJSFSchema);
|
||||||
const isAdditionalProperty = ADDITIONAL_PROPERTY_FLAG in schema;
|
const isAdditionalProperty = ADDITIONAL_PROPERTY_FLAG in schema;
|
||||||
const suppressMultiSchema =
|
const suppressMultiSchema =
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user