fix: prevent line truncation in order widget when component is non-editable
This commit is contained in:
parent
51e581eb7a
commit
1227b86855
@ -41,6 +41,9 @@ patch(OrderWidget.prototype, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
get linesToDisplay() {
|
get linesToDisplay() {
|
||||||
|
if (this.props.editable === false || this.props.editable === 'false') {
|
||||||
|
return this.props.lines;
|
||||||
|
}
|
||||||
return this.props.lines.slice(0, this.state.displayedCount);
|
return this.props.lines.slice(0, this.state.displayedCount);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user