mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-25 14:57:07 +03:00
Face recognition UI improvements (#16422)
* Rework face recognition APIs * Fix error message on cancel * Add ability to create new face library
This commit is contained in:
@@ -41,7 +41,7 @@ export default function UploadImageDialog({
|
||||
|
||||
const onSubmit = useCallback(
|
||||
(data: z.infer<typeof formSchema>) => {
|
||||
if (!data["file"]) {
|
||||
if (!data["file"] || Object.keys(data.file).length == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user