mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 04:27:42 +03:00
fix crash in face library on initial start after enabling
This commit is contained in:
parent
fc2f9aa65c
commit
fda420a0b3
@ -68,6 +68,7 @@
|
|||||||
"dropInstructions": "Drag and drop an image here, or click to select",
|
"dropInstructions": "Drag and drop an image here, or click to select",
|
||||||
"maxSize": "Max size: {{size}}MB"
|
"maxSize": "Max size: {{size}}MB"
|
||||||
},
|
},
|
||||||
|
"nofaces": "No faces available",
|
||||||
"readTheDocs": "Read the documentation",
|
"readTheDocs": "Read the documentation",
|
||||||
"trainFaceAs": "Train Face as:",
|
"trainFaceAs": "Train Face as:",
|
||||||
"trainFace": "Train Face",
|
"trainFace": "Train Face",
|
||||||
|
|||||||
@ -390,10 +390,10 @@ export default function FaceLibrary() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{pageToggle && faceImages.length === 0 && pageToggle !== "train" ? (
|
{pageToggle && faceImages?.length === 0 && pageToggle !== "train" ? (
|
||||||
<div className="absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 flex-col items-center justify-center text-center">
|
<div className="absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 flex-col items-center justify-center text-center">
|
||||||
<LuFolderCheck className="size-16" />
|
<LuFolderCheck className="size-16" />
|
||||||
No faces available
|
{t("nofaces")}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
pageToggle &&
|
pageToggle &&
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user