Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added
- Add unit test for `core/modules/checkout` - @psmyrek (#3460)
- Add defense against incomplete config in ssr renderer - @oskar1233 (#3774)
- Add unit tests for `core/modules/order` - @dz3n (#3466)

### Fixed
Expand Down
5 changes: 4 additions & 1 deletion core/scripts/utils/ssr-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ function createRenderer (bundle, clientManifest, template) {
}

function getFieldsToFilter () {
const fields = [...config.ssr.initialStateFilter, ...config.ssr.lazyHydrateFor]
const fields = [
...(config.ssr && (config.ssr.initialStateFilter || [])),
...(config.ssr && (config.ssr.lazyHydrateFor || []))
]

return fields
}
Expand Down