Skip to content

Commit 9db0961

Browse files
committed
refactor: cleanup condition
1 parent aa6e0ce commit 9db0961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shared/widget-plugin-grid/src/selection/createSelectionHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function createSelectionHelper(
5858
);
5959
add(cleanup);
6060
}
61-
if (helper.type !== null && config.autoSelect) {
61+
if (helper !== null && config.autoSelect) {
6262
const dispose = autorun(
6363
() => {
6464
const { datasource } = gate.props;

0 commit comments

Comments
 (0)