Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 0cab342

Browse files
authored
Merge pull request #417 from lnicorena/bugfix/416
Fix msi default stock id value
2 parents 7aefd2b + 4da3eaf commit 0cab342

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2020
### Fixed
2121
- add es7 support for map url module and fixed default index for es config - @gibkigonzo
2222
- Add correct paths for production build - @cewald (#407)
23+
- Fix MSI default stock id value
2324

2425
## [1.11.0] - 2019.12.20
2526

src/api/stock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default ({ config, db }) => {
1212

1313
const _getStockId = (storeCode) => {
1414
let storeView = config.storeViews[storeCode]
15-
return storeView ? storeView.msi.stockId : config.defaultStockId
15+
return storeView ? storeView.msi.stockId : config.msi.defaultStockId
1616
};
1717

1818
/**

0 commit comments

Comments
 (0)