From a2b9f8e59f07e3b360a91c94ba31319229e91b41 Mon Sep 17 00:00:00 2001 From: Neha Gokhale Date: Thu, 24 Oct 2024 15:25:30 -0700 Subject: [PATCH] added itemToString for Dropdown component Signed-off-by: Neha Gokhale --- .../src/common-properties/controls/dropdown/dropdown.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/canvas_modules/common-canvas/src/common-properties/controls/dropdown/dropdown.jsx b/canvas_modules/common-canvas/src/common-properties/controls/dropdown/dropdown.jsx index e8ce434e5..4458b93b9 100644 --- a/canvas_modules/common-canvas/src/common-properties/controls/dropdown/dropdown.jsx +++ b/canvas_modules/common-canvas/src/common-properties/controls/dropdown/dropdown.jsx @@ -290,6 +290,7 @@ class DropDown extends React.Component { disabled={this.props.state === STATES.DISABLED || this.disableEmptyListDropdown} type="default" items={dropDown.options} + itemToString={(item) => (item ? item.label : "")} itemToElement={this.renderItem} renderSelectedItem={this.renderItem} onChange={this.handleChange}