Fix UI crash when scraping new scene (#3283)

This commit is contained in:
WithoutPants
2022-12-16 12:14:00 +11:00
committed by GitHub
parent 05b0fb23f4
commit 74506bc5e8

View File

@@ -436,7 +436,7 @@ export const SceneEditPanel: React.FC<IProps> = ({
const currentScene = getSceneInput(formik.values);
if (!currentScene.cover_image) {
currentScene.cover_image = scene.paths!.screenshot;
currentScene.cover_image = scene.paths?.screenshot;
}
return (