fix: prevent line truncation in order widget when component is non-editable

This commit is contained in:
Suherdy Yacob 2026-04-14 16:07:42 +07:00
parent 51e581eb7a
commit 1227b86855

View File

@ -41,6 +41,9 @@ patch(OrderWidget.prototype, {
},
get linesToDisplay() {
if (this.props.editable === false || this.props.editable === 'false') {
return this.props.lines;
}
return this.props.lines.slice(0, this.state.displayedCount);
}
});