mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-15 08:21:16 +03:00
formatting
This commit is contained in:
parent
dff790715c
commit
ab43c9a41a
@ -137,7 +137,9 @@ function normalizeNullableSchema(schema: RJSFSchema): RJSFSchema {
|
||||
return {
|
||||
...rest,
|
||||
type: hasNull ? ["string", "null"] : "string",
|
||||
...(enumValues && enumValues.length > 0 ? { examples: enumValues } : {}),
|
||||
...(enumValues && enumValues.length > 0
|
||||
? { examples: enumValues }
|
||||
: {}),
|
||||
} as RJSFSchema;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user