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";
88import { SimpleNameComp } from "comps/comps/simpleNameComp" ;
99import { StringControl } from "comps/controls/codeControl" ;
1010import { eventHandlerControl } from "comps/controls/eventHandlerControl" ;
11- import { EditorContext , EditorState } from "comps/editorState" ;
11+ import { EditorState } from "comps/editorState" ;
1212import {
1313 stateComp ,
1414 valueComp ,
@@ -43,7 +43,7 @@ import {
4343 wrapActionExtraInfo ,
4444} from "lowcoder-core" ;
4545import { ValueFromOption } from "lowcoder-design" ;
46- import { ReactNode , useContext , useEffect } from "react" ;
46+ import { ReactNode , useEffect } from "react" ;
4747import {
4848 BottomResComp ,
4949 BottomResCompResult ,
@@ -271,12 +271,10 @@ interface QueryViewProps {
271271}
272272
273273function QueryView ( props : QueryViewProps ) {
274- const editorState = useContext ( EditorContext ) ;
275274 const { comp } = props ;
276275
277276 useEffect ( ( ) => {
278277 // Automatically load when page load
279-
280278 if (
281279 getTriggerType ( comp ) === "automatic" &&
282280 ( comp as any ) . isDepReady &&
You can’t perform that action at this time.
0 commit comments