diff --git a/src/store/modules/user/actions.ts b/src/store/modules/user/actions.ts index de5da541..aaf565a6 100644 --- a/src/store/modules/user/actions.ts +++ b/src/store/modules/user/actions.ts @@ -205,7 +205,7 @@ const actions: ActionTree = { * update current shopify config id */ async setCurrentShopifyConfig({ commit, dispatch }, shopifyConfig) { - commit(types.USER_CURRENT_SHOPIFY_CONFIG_UPDATED, shopifyConfig); + commit(types.USER_CURRENT_SHOPIFY_CONFIG_UPDATED, shopifyConfig ? shopifyConfig : {}); dispatch('job/clearJobState', null, { root: true }); },