From 1227b86855bfe899bb69e1e7fbe12b44902dfe61 Mon Sep 17 00:00:00 2001 From: Suherdy Yacob Date: Tue, 14 Apr 2026 16:07:42 +0700 Subject: [PATCH] fix: prevent line truncation in order widget when component is non-editable --- .../app/generic_components/order_widget/order_widget_patch.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/src/app/generic_components/order_widget/order_widget_patch.js b/static/src/app/generic_components/order_widget/order_widget_patch.js index 54f070e..17e2659 100644 --- a/static/src/app/generic_components/order_widget/order_widget_patch.js +++ b/static/src/app/generic_components/order_widget/order_widget_patch.js @@ -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); } });