Skip to content

Commit dffc153

Browse files
committed
[FIX] Inventory: remove dead code in inventory valuation journal script
This was a leftover from the original `entries.js` file. Task ID: 5107300
1 parent 6666e3b commit dffc153

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

static/js/valuation-journal.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,10 @@
158158
if (!this.props.items || this.props.items.isEmpty()) {
159159
return React.DOM.div();
160160
}
161-
const items = this.props.items;
162-
const idx = items.indexOf(null);
163-
if (idx !== -1) {
164-
// console.log(items.slice(idx + 1).deref());
165-
items = items.take(idx);
166-
}
167161
return React.DOM.div(
168162
{ className: 'entries-listing' },
169163
React.DOM.h4(null, this.props.heading, ':'),
170-
items.map(function (item, index) {
164+
this.props.items.map(function (item, index) {
171165
return React.DOM.p({ key: index }, item);
172166
})
173167
);

0 commit comments

Comments
 (0)