mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-19 01:17:06 +03:00
small fix on image type
This commit is contained in:
parent
57eb548cbb
commit
639d2bdea7
@ -167,7 +167,7 @@ export default function FaceLibrary() {
|
|||||||
await axios.post(`/faces/${renameData.newName}/create`);
|
await axios.post(`/faces/${renameData.newName}/create`);
|
||||||
|
|
||||||
const oldFaceImages = faceData[renameData.oldName] || [];
|
const oldFaceImages = faceData[renameData.oldName] || [];
|
||||||
const copyPromises = oldFaceImages.map(async (image) => {
|
const copyPromises = oldFaceImages.map(async (image: string) => {
|
||||||
const response = await fetch(`${baseUrl}clips/faces/${renameData.oldName}/${image}`);
|
const response = await fetch(`${baseUrl}clips/faces/${renameData.oldName}/${image}`);
|
||||||
const blob = await response.blob();
|
const blob = await response.blob();
|
||||||
|
|
||||||
@ -190,7 +190,7 @@ export default function FaceLibrary() {
|
|||||||
|
|
||||||
setRenameDialog(false);
|
setRenameDialog(false);
|
||||||
setRenameData({ oldName: '', newName: '' });
|
setRenameData({ oldName: '', newName: '' });
|
||||||
await refreshFaces(); // Wait for refresh to complete
|
await refreshFaces();
|
||||||
toast.success("Successfully renamed face", { position: "top-center" });
|
toast.success("Successfully renamed face", { position: "top-center" });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const axiosError = error as AxiosError<{ message: string }>;
|
const axiosError = error as AxiosError<{ message: string }>;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user