From 11058262cfaddf13000ab73d7f3aa8d06beb0b9f Mon Sep 17 00:00:00 2001 From: alex <85208095+alexnsfw@users.noreply.github.com> Date: Fri, 17 Jun 2022 07:23:50 -0400 Subject: [PATCH] fix: cover breaking when editing scene (#759) --- ui/src/views/scenes/EditScene.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ui/src/views/scenes/EditScene.vue b/ui/src/views/scenes/EditScene.vue index 9088d62eb..636fcb639 100644 --- a/ui/src/views/scenes/EditScene.vue +++ b/ui/src/views/scenes/EditScene.vue @@ -184,10 +184,7 @@ export default { }) }) this.scene.images = JSON.stringify(images) - this.scene.cover_url = "" - if (this.scene.length > 0) { - this.scene.cover_url = this.scene.covers[0] - } + this.scene.cover_url = this.scene.covers[0] this.scene.filenames_arr = JSON.stringify(this.scene.files) ky.post(`/api/scene/edit/${this.scene.id}`, { json: { ...this.scene } })