Skip to content

Commit

Permalink
set default storeId to 1 instead of 0 so default magento storeId is q…
Browse files Browse the repository at this point in the history
…ueried instead of 0 which never has chance of existence as primary key
  • Loading branch information
Jan Myszkier committed Mar 25, 2019
1 parent 7fdbf45 commit 5032eb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/lib/multistore.ts
Expand Up @@ -44,7 +44,7 @@ export function prepareStoreView (storeCode: string) : StoreView {
i18n: config.i18n,
elasticsearch: config.elasticsearch,
storeCode: '',
storeId: 0
storeId: 1
}
const storeViewHasChanged = !rootStore.state.storeView || rootStore.state.storeView.storeCode !== storeCode
if (storeCode) { // current store code
Expand Down
2 changes: 1 addition & 1 deletion src/modules/magento-2-cms/components/CmsData.vue
Expand Up @@ -54,7 +54,7 @@ export default {
return currentStoreView()
},
storeView () {
return (this.isMultistoreEnable && this.currentStore) ? this.currentStore.storeId : 0
return (this.isMultistoreEnable && this.currentStore) ? this.currentStore.storeId : 1
}
},
data () {
Expand Down

0 comments on commit 5032eb9

Please sign in to comment.