diff --git a/apps/studio/components/ui/EditorPanel/EditorPanel.tsx b/apps/studio/components/ui/EditorPanel/EditorPanel.tsx index a6716b5d012..fc16a279e6b 100644 --- a/apps/studio/components/ui/EditorPanel/EditorPanel.tsx +++ b/apps/studio/components/ui/EditorPanel/EditorPanel.tsx @@ -64,7 +64,7 @@ interface EditorPanelProps { label?: string saveLabel?: string saveValue?: string - onSave?: (value: string) => void + onSave?: (value: string, saveValue: string) => void onRunSuccess?: (value: any[]) => void onRunError?: (value: any) => void functionName?: string @@ -404,7 +404,7 @@ export const EditorPanel = ({
{ - onSave(values.saveValue) + onSave(currentValue, values.saveValue) })} className="flex items-center gap-2" > @@ -417,12 +417,7 @@ export const EditorPanel = ({ )} /> )} -