mirror of
https://github.com/odoo/documentation.git
synced 2025-12-12 07:29:27 +07:00
[FIX] Inventory: remove dead code in inventory valuation journal script
This was a leftover from the original `entries.js` file.
Task ID: 5107300
X-original-commit: 5657c463e0
Part-of: odoo/documentation#15300
Signed-off-by: Felicia Kuan (feku) <feku@odoo.com>
Signed-off-by: Lulu Grimalkin (lugr) <lugr@odoo.com>
This commit is contained in:
@@ -158,16 +158,10 @@
|
|||||||
if (!this.props.items || this.props.items.isEmpty()) {
|
if (!this.props.items || this.props.items.isEmpty()) {
|
||||||
return React.DOM.div();
|
return React.DOM.div();
|
||||||
}
|
}
|
||||||
const items = this.props.items;
|
|
||||||
const idx = items.indexOf(null);
|
|
||||||
if (idx !== -1) {
|
|
||||||
// console.log(items.slice(idx + 1).deref());
|
|
||||||
items = items.take(idx);
|
|
||||||
}
|
|
||||||
return React.DOM.div(
|
return React.DOM.div(
|
||||||
{ className: 'entries-listing' },
|
{ className: 'entries-listing' },
|
||||||
React.DOM.h4(null, this.props.heading, ':'),
|
React.DOM.h4(null, this.props.heading, ':'),
|
||||||
items.map(function (item, index) {
|
this.props.items.map(function (item, index) {
|
||||||
return React.DOM.p({ key: index }, item);
|
return React.DOM.p({ key: index }, item);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user