mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-09-28 10:56:52 +03:00
Implement UI for managing multiple models (#24023)
* Implement hardware detection and UI management * Cleanup Frigate+ detection * Don't count model as changed * Fixes for audio map error * Add descriptions * Enforce that all model must exist * Fix hardware picking * Docs fixes * WebUI cleanup * Cleanup handling of scenes * UI refinement * Cleanup recommended UI * test fixews
This commit is contained in:
@@ -736,6 +736,13 @@ export function applySchemaDefaults(
|
||||
schema: RJSFSchema,
|
||||
formData: Record<string, unknown> = {},
|
||||
): Record<string, unknown> {
|
||||
// An array section (models) carries its defaults on the item schema, not
|
||||
// here. Spreading an array below would turn it into an object keyed by
|
||||
// index, so hand it back untouched.
|
||||
if (Array.isArray(formData)) {
|
||||
return formData as unknown as Record<string, unknown>;
|
||||
}
|
||||
|
||||
const result = { ...formData };
|
||||
const schemaObj = schema as Record<string, unknown>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user