diff --git a/stores/library.js b/stores/library.js index 30d1cdf918afc51be6fc4ab4bb7049eccfce5776..b16ac8b0e30fbf649075cc5a6fd7b7994235ad4d 100644 --- a/stores/library.js +++ b/stores/library.js @@ -17,7 +17,11 @@ export const useLibraryStore = defineStore('library', () => { function $openLibrarySelect (id, collectionId) { $isLibrarySelectOpen.value = true if (id) $selectThreadId.value = id - if (collectionId) $selectCollectionId.value = collectionId + if (collectionId) { + $selectCollectionId.value = collectionId + } else { + $selectCollectionId.value = [] + } } function $closeLibrarySelect () { $isLibrarySelectOpen.value = false