orderiom-api-package 0.4.65 → 0.4.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orderiom-api-package",
3
- "version": "0.4.65",
3
+ "version": "0.4.66",
4
4
  "description": "This package will install all necessary API calls for every orderiom restaurant",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -315,14 +315,14 @@ const actions = {
315
315
  }
316
316
  }).catch(
317
317
  commonErrorCallback()
318
- );
318
+ ).finally(() => {
319
+ commit('setCategoriesFetchedOnce');
320
+ });
319
321
 
320
322
  return res
321
323
  }).catch(
322
324
  commonErrorCallback()
323
- ).finally(() => {
324
- commit('setCategoriesFetchedOnce');
325
- });
325
+ );
326
326
  },
327
327
  getProducts({ commit, state, rootState }, data) {
328
328
  commit("setSelectedCategory", data.category);