diff --git a/src/stores/lists.ts b/src/stores/lists.ts index 09cdccf4cd..17db4debf2 100644 --- a/src/stores/lists.ts +++ b/src/stores/lists.ts @@ -124,10 +124,10 @@ export const useListStore = defineStore('list', () => { ...list, namespaceId: FavoriteListsNamespace, } + + namespaceStore.removeListFromNamespaceById(newList) if (list.isFavorite) { namespaceStore.addListToNamespace(newList) - } else { - namespaceStore.removeListFromNamespaceById(newList) } namespaceStore.loadNamespacesIfFavoritesDontExist() namespaceStore.removeFavoritesNamespaceIfEmpty()