From 4cdf9467d0db82f778c114aeb73675afa08bb662 Mon Sep 17 00:00:00 2001 From: Neha Gokhale Date: Tue, 14 Jan 2025 14:46:38 -0800 Subject: [PATCH] #2300 Readonly table row should not have delete icon Signed-off-by: Neha Gokhale --- .../src/common-properties/controls/abstract-table.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canvas_modules/common-canvas/src/common-properties/controls/abstract-table.jsx b/canvas_modules/common-canvas/src/common-properties/controls/abstract-table.jsx index 6b5907061..60fc619ea 100644 --- a/canvas_modules/common-canvas/src/common-properties/controls/abstract-table.jsx +++ b/canvas_modules/common-canvas/src/common-properties/controls/abstract-table.jsx @@ -744,7 +744,7 @@ export default class AbstractTable extends React.Component { const cell = this.buildChildItem(propertyName, rowIndex, tableState); columns.push(cell); } - if (this.props.control.rowSelection === ROW_SELECTION.SINGLE) { + if (this.props.control.rowSelection === ROW_SELECTION.SINGLE && !this.isReadonlyTable()) { const toolTip = PropertyUtils.formatMessage(this.reactIntl, MESSAGE_KEYS.TABLE_DELETEICON_TOOLTIP); const tooltipId = "tooltip-delete-row"; const deleteOption = (