From 135ceb4a9de2238c1678577b5f3d34c6a9f66a8b Mon Sep 17 00:00:00 2001
From: Julius Härtl <jus@bitgrid.net>
Date: Tue, 18 Aug 2020 11:57:01 +0200
Subject: Fix late night errors
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Julius Härtl <jus@bitgrid.net>
---
 apps/dashboard/src/components/BackgroundSettings.vue | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'apps/dashboard/src/components/BackgroundSettings.vue')

diff --git a/apps/dashboard/src/components/BackgroundSettings.vue b/apps/dashboard/src/components/BackgroundSettings.vue
index accc094f523..65f70614d7b 100644
--- a/apps/dashboard/src/components/BackgroundSettings.vue
+++ b/apps/dashboard/src/components/BackgroundSettings.vue
@@ -95,6 +95,11 @@ export default {
 		async update(data) {
 			const background = data.type === 'custom' || data.type === 'default' ? data.type : data.value
 			this.backgroundImage = getBackgroundUrl(background, data.version)
+			if (data.type === 'color') {
+				this.$emit('updateBackground', data)
+				this.loading = false
+				return
+			}
 			const image = new Image()
 			image.onload = () => {
 				this.$emit('updateBackground', data)
-- 
cgit v1.2.3

