fix(list): make sure favorite lists are not duplicated in the menu when renaming them
Resolves https://kolaente.dev/vikunja/frontend/issues/3031
This commit is contained in:
parent
b29008d304
commit
1749d6ba0a
@ -124,10 +124,10 @@ export const useListStore = defineStore('list', () => {
|
|||||||
...list,
|
...list,
|
||||||
namespaceId: FavoriteListsNamespace,
|
namespaceId: FavoriteListsNamespace,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespaceStore.removeListFromNamespaceById(newList)
|
||||||
if (list.isFavorite) {
|
if (list.isFavorite) {
|
||||||
namespaceStore.addListToNamespace(newList)
|
namespaceStore.addListToNamespace(newList)
|
||||||
} else {
|
|
||||||
namespaceStore.removeListFromNamespaceById(newList)
|
|
||||||
}
|
}
|
||||||
namespaceStore.loadNamespacesIfFavoritesDontExist()
|
namespaceStore.loadNamespacesIfFavoritesDontExist()
|
||||||
namespaceStore.removeFavoritesNamespaceIfEmpty()
|
namespaceStore.removeFavoritesNamespaceIfEmpty()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user