Skip to content

Commit

Permalink
fix free function option
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket-Engg committed Aug 29, 2024
1 parent a247f18 commit 991b090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/remix-ui/editor/src/lib/remix-ui-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,7 @@ export const EditorUI = (props: EditorUIProps) => {
if (freeFunctionNode) {
executeFreeFunctionAction.label = intl.formatMessage({ id: 'editor.executeFreeFunction2' }, { name: freeFunctionNode.name })
freeFunctionAction = editor.addAction(executeFreeFunctionAction)
freeFunctionCondition.set(true)
}

const functionImpl = nodesAtPosition.find((node) => node.kind === 'function')
Expand All @@ -945,7 +946,6 @@ export const EditorUI = (props: EditorUIProps) => {
executeSolgptExplainFunctionAction.label = intl.formatMessage({ id: 'editor.explainFunctionSol' })
solgptExplainFunctionAction = editor.addAction(executeSolgptExplainFunctionAction)
}
freeFunctionCondition.set(!!freeFunctionNode)
}
contextmenu._onContextMenu = (...args) => {
if (args[0]) args[0].event?.preventDefault()
Expand Down

0 comments on commit 991b090

Please sign in to comment.