From 272f64395592706bb9f55f0ce7a5546891ab5dbd Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 7 May 2024 17:17:06 +0200 Subject: [PATCH] fix(project): show "remove background" button only when the project has a background set --- frontend/src/views/project/settings/background.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/project/settings/background.vue b/frontend/src/views/project/settings/background.vue index 96061641c..8bbfd64cd 100644 --- a/frontend/src/views/project/settings/background.vue +++ b/frontend/src/views/project/settings/background.vue @@ -162,7 +162,7 @@ const configStore = useConfigStore() const unsplashBackgroundEnabled = computed(() => configStore.enabledBackgroundProviders.includes('unsplash')) const uploadBackgroundEnabled = computed(() => configStore.enabledBackgroundProviders.includes('upload')) const currentProject = computed(() => baseStore.currentProject) -const hasBackground = computed(() => baseStore.background !== null) +const hasBackground = computed(() => !!currentProject.value.backgroundInformation) // Show the default collection of backgrounds newBackgroundSearch()