Skip to content

Commit

Permalink
fix: error when xxxProperties were empty in merge
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtek-krysiak committed Aug 6, 2020
1 parent 4fc653e commit 1db1235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/utils/build-feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const mergeResourceOptions = (

['listProperties', 'showProperties', 'editProperties', 'filterProperties'].forEach((propName) => {
if (newOptions[propName]) {
options[propName] = uniq([...oldOptions[propName], newOptions[propName]])
options[propName] = uniq([...(oldOptions[propName] || []), newOptions[propName]])
}
})

Expand Down

0 comments on commit 1db1235

Please sign in to comment.