fix(webui): wrong comparison could show error in javascript console

This commit is contained in:
Gauthier Roebroeck 2021-04-27 21:37:38 +08:00
parent a6252ff2e8
commit b345c30d12

View file

@ -413,8 +413,8 @@ export default Vue.extend({
this.totalElements = seriesPage.totalElements
this.series = seriesPage.content
},
getLibraryLazy(libraryId: any): LibraryDto | undefined {
if (libraryId !== 0) {
getLibraryLazy (libraryId: string): LibraryDto | undefined {
if (libraryId !== LIBRARIES_ALL) {
return this.$store.getters.getLibraryById(libraryId)
} else {
return undefined