diff --git a/src/mixins/bookstore.js b/src/mixins/bookstore.js index 954d02a39..a3f1f0f24 100644 --- a/src/mixins/bookstore.js +++ b/src/mixins/bookstore.js @@ -18,7 +18,9 @@ export default { return this.$i18n.locale.includes(items.locales); }, filterBookstoreListItemsByLocale(books) { - return books.filter(this.checkBookstoreListItemIsMatchedLocale); + return Array.isArray(books) + ? books.filter(this.checkBookstoreListItemIsMatchedLocale) + : []; }, }, };