diff --git a/src/api/api.js b/src/api/api.js index a3f6e769..1e690863 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -5,7 +5,7 @@ import lstore from "@/plugins/lstore/lstore.js"; let cancel; let pending = {}; const CancelToken = axios.CancelToken; -export const limit = ~~lstore.getData("BOOTSTRAPPERS").limit || 15; +export const limit = ~~(lstore.getData("BOOTSTRAPPERS") || {}).limit || 15; const baseURL = process.env.NODE_ENV === "production" ? `${process.env.VUE_APP_API_HOST}/api/${process.env.VUE_APP_API_VERSION}`