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:
Nicolas Mowen
2025-02-09 13:22:25 -06:00
committed by GitHub
parent c58d2add37
commit 81a56549da
4 changed files with 163 additions and 8 deletions
@@ -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;
}