Skip to content

Commit 7333bfa

Browse files
committed
Removing unnecessary type coercion
1 parent f43ce36 commit 7333bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugins/canvas/public/components/datasource/datasource_component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class DatasourceComponent extends PureComponent {
142142
defaultIndex,
143143
});
144144

145-
const hasExpressionArgs = !!Object.values(stateArgs).some((a) => a && typeof a[0] === 'object');
145+
const hasExpressionArgs = Object.values(stateArgs).some((a) => a && typeof a[0] === 'object');
146146

147147
return (
148148
<Fragment>

0 commit comments

Comments
 (0)