Fix showing uploaded background after uploading a new one

This commit is contained in:
kolaente 2020-06-11 19:04:12 +02:00
parent d55a5965a5
commit 35877c7fc7
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -61,6 +61,14 @@ export const store = new Vuex.Store({
state.currentList.backgroundInformation &&
state.currentList.backgroundInformation.unsplashId &&
currentList.backgroundInformation.unsplashId !== state.currentList.backgroundInformation.unsplashId
) ||
// The new list has a background which is not an unsplash one and did not have one previously
(
currentList.backgroundInformation &&
currentList.backgroundInformation.type &&
state.currentList &&
state.currentList.backgroundInformation &&
state.currentList.backgroundInformation.type
)
) {
if (currentList.backgroundInformation) {