File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
client/packages/lowcoder/src/comps/queries Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import DataSourceIcon from "components/DataSourceIcon";
8
8
import { SimpleNameComp } from "comps/comps/simpleNameComp" ;
9
9
import { StringControl } from "comps/controls/codeControl" ;
10
10
import { eventHandlerControl } from "comps/controls/eventHandlerControl" ;
11
- import { EditorContext , EditorState } from "comps/editorState" ;
11
+ import { EditorState } from "comps/editorState" ;
12
12
import {
13
13
stateComp ,
14
14
valueComp ,
@@ -43,7 +43,7 @@ import {
43
43
wrapActionExtraInfo ,
44
44
} from "lowcoder-core" ;
45
45
import { ValueFromOption } from "lowcoder-design" ;
46
- import { ReactNode , useContext , useEffect } from "react" ;
46
+ import { ReactNode , useEffect } from "react" ;
47
47
import {
48
48
BottomResComp ,
49
49
BottomResCompResult ,
@@ -271,12 +271,10 @@ interface QueryViewProps {
271
271
}
272
272
273
273
function QueryView ( props : QueryViewProps ) {
274
- const editorState = useContext ( EditorContext ) ;
275
274
const { comp } = props ;
276
275
277
276
useEffect ( ( ) => {
278
277
// Automatically load when page load
279
-
280
278
if (
281
279
getTriggerType ( comp ) === "automatic" &&
282
280
( comp as any ) . isDepReady &&
You can’t perform that action at this time.
0 commit comments