From d6420d236f37e8aa7b58aaee8e6547f2952ce154 Mon Sep 17 00:00:00 2001 From: Ben White Date: Fri, 21 Jun 2024 12:33:06 +0200 Subject: [PATCH] Fix --- .../PipelineHogFunctionConfiguration.tsx | 70 ------------------- 1 file changed, 70 deletions(-) diff --git a/frontend/src/scenes/pipeline/hogfunctions/PipelineHogFunctionConfiguration.tsx b/frontend/src/scenes/pipeline/hogfunctions/PipelineHogFunctionConfiguration.tsx index c3c0ad7b748de..71d1dd694a1e6 100644 --- a/frontend/src/scenes/pipeline/hogfunctions/PipelineHogFunctionConfiguration.tsx +++ b/frontend/src/scenes/pipeline/hogfunctions/PipelineHogFunctionConfiguration.tsx @@ -334,76 +334,6 @@ export function PipelineHogFunctionConfiguration({ )} - - {showSource ? ( - <> - } - size="small" - type="secondary" - className="my-4" - onClick={() => { - setConfigurationValue('inputs_schema', [ - ...(configuration.inputs_schema ?? []), - { - type: 'string', - key: `input_${ - (configuration.inputs_schema?.length ?? 0) + 1 - }`, - label: '', - required: false, - }, - ]) - }} - > - Add input variable - - - {({ value, onChange }) => ( - <> -
- Function source code - setShowSource(false)} - > - Hide source code - -
- onChange(v ?? '')} - options={{ - minimap: { - enabled: false, - }, - wordWrap: 'on', - scrollBeyondLastLine: false, - automaticLayout: true, - fixedOverflowWidgets: true, - suggest: { - showInlineDetails: true, - }, - quickSuggestionsDelay: 300, - }} - /> - - )} -
- - ) : ( -
- setShowSource(true)} - > - Show function source code - -
- )}