vars
This commit is contained in:
@@ -106,14 +106,14 @@ export const ConfigNode = memo(function ConfigNode({ id, data, width, height }:
|
||||
|
||||
const insertVariableReference = useCallback(
|
||||
(sourceNode: any, mode: 'prepend' | 'append' | 'cursor') => {
|
||||
insertAt(`\${${sourceNode.id}}`, mode)
|
||||
insertAt(`{{ ${sourceNode.id} }}`, mode)
|
||||
},
|
||||
[insertAt]
|
||||
)
|
||||
|
||||
const insertFunctionCall = useCallback(
|
||||
(sourceNode: any, mode: 'prepend' | 'append' | 'cursor') => {
|
||||
insertAt(`\${${sourceNode.id}()}`, mode)
|
||||
insertAt(`{{ ${sourceNode.id}() }}`, mode)
|
||||
},
|
||||
[insertAt]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user