Skip to content

Commit dcd4f76

Browse files
author
Masakorala, Manoj
committed
minor fix
1 parent 905af26 commit dcd4f76

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/index.browser.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/NodeModel.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ class NodeModel {
149149
if (this.flatNodes[value].multiInputValue) {
150150
list.filter((el) => el.hotel === this.flatNodes[value].value).length > 0 &&
151151
list.map(p => p.hotel === value
152-
? { ...p, rates: key.rates.map(i => i.value) }
152+
? { ...p, rates: key?.rates.map(i => i.value) }
153153
: p
154154
);
155155
list.filter((el) => el.hotel === this.flatNodes[value].value).length === 0 && list.push({ hotel: value, rates: this.flatNodes[value].multiInputValue });
156156
} else {
157-
list.filter((el) => el.hotel === key.hotel).length === 0 && list.push( {hotel: key.hotel, rates: key.rates.map(v => v.value) } );
157+
list.filter((el) => el.hotel === key.hotel).length === 0 && list.push( {hotel: key.hotel, rates: key?.rates.map(v => v.value) } );
158158
}
159159
});
160160
return list;

0 commit comments

Comments
 (0)