We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ced33d8 commit b82a02bCopy full SHA for b82a02b
src/utils/syncSpace.js
@@ -18,7 +18,9 @@ export const filterSpace = space => {
18
// remove properties in items
19
// eslint-disable-next-line no-restricted-syntax
20
for (const phase of filteredSpace.phases) {
21
- phase.items = phase.items.map(item => _.pick(item, SYNC_ITEM_PROPERTIES));
+ if (!_.isEmpty(phase.items)) {
22
+ phase.items = phase.items.map(item => _.pick(item, SYNC_ITEM_PROPERTIES));
23
+ }
24
}
25
26
return filteredSpace;
0 commit comments