File tree Expand file tree Collapse file tree 3 files changed +4
-17
lines changed Expand file tree Collapse file tree 3 files changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,8 @@ import "./style.css";
10
10
export function Canvas ( {
11
11
baseId,
12
12
} : CanvasModel ) {
13
- const {
14
- nodeSystem,
15
- } = useNodeSystemContext ( ) ! ;
16
-
17
- const {
18
- newNode,
19
- } = useNodeFactoryContext ( ) ! ;
20
-
21
- const {
22
- removeNode,
23
- } = useNodeSystemContext ( ) ! ;
13
+ const { newNode } = useNodeFactoryContext ( ) ! ;
14
+ const { nodeSystem, removeNode } = useNodeSystemContext ( ) ! ;
24
15
25
16
const nodes = nodeSystem [ baseId ] ?. nodes || [ ] ;
26
17
Original file line number Diff line number Diff line change @@ -31,9 +31,7 @@ const createNodeSystemContext = () => {
31
31
const NodeSystemProvider = ( { children } : {
32
32
children : ReactNode ;
33
33
} ) => {
34
- const {
35
- setUnsavedChanges,
36
- } = useUnsavedChangesContext ( ) ! ;
34
+ const { setUnsavedChanges } = useUnsavedChangesContext ( ) ! ;
37
35
38
36
const [ entries , setEntries ] = useState < string [ ] > ( [
39
37
"ENTRY" ,
Original file line number Diff line number Diff line change @@ -29,9 +29,7 @@ const createVariablesContext = () => {
29
29
const VariablesProvider = ( { children } : {
30
30
children : ReactNode ;
31
31
} ) => {
32
- const {
33
- requestPrompt,
34
- } = usePromptContext ( ) ! ;
32
+ const { requestPrompt } = usePromptContext ( ) ! ;
35
33
36
34
const [ stSet , setStSet ] = useState < Set < string > > ( new Set ( ) ) ;
37
35
const [ ccSet , setCcSet ] = useState < Set < string > > ( new Set ( ) ) ;
You can’t perform that action at this time.
0 commit comments