Skip to content

Commit 1658a1a

Browse files
author
Illia Obukhau
committed
refactor(datagrid-web): merge props to single array
1 parent 9e8d391 commit 1658a1a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/pluggableWidgets/datagrid-web/src/Datagrid.editorConfig.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ function hideSelectionProperties(defaultProperties: Properties, values: Datagrid
146146
const { itemSelection, itemSelectionMethod } = values;
147147

148148
if (itemSelection === "None") {
149-
hidePropertyIn(defaultProperties, values, "itemSelectionMethod");
150-
hidePropertyIn(defaultProperties, values, "onSelectionChange");
149+
hidePropertiesIn(defaultProperties, values, ["itemSelectionMethod", "onSelectionChange"]);
151150
}
152151

153152
if (itemSelection !== "Multi" || itemSelectionMethod !== "checkbox") {

0 commit comments

Comments
 (0)