2
0

fix: 🐛 quick fixes

This commit is contained in:
Baptiste Arnaud
2022-02-15 10:59:26 +01:00
parent a8a03fbcf2
commit b95d907e8f
2 changed files with 3 additions and 3 deletions

View File

@ -156,7 +156,7 @@ export const WebhookSettings = ({
</AccordionButton> </AccordionButton>
<AccordionPanel pb={4} as={Stack} spacing="6"> <AccordionPanel pb={4} as={Stack} spacing="6">
<CodeEditor <CodeEditor
value={'test'} value={webhook.body ?? ''}
lang="json" lang="json"
onChange={handleBodyChange} onChange={handleBodyChange}
/> />

View File

@ -8,7 +8,7 @@ import {
IntegrationStepType, IntegrationStepType,
StepIndices, StepIndices,
} from 'models' } from 'models'
import { isInputStep } from 'utils' import { isChoiceInput, isInputStep } from 'utils'
import { ItemNodesList } from '../../ItemNode' import { ItemNodesList } from '../../ItemNode'
import { import {
SetVariableContent, SetVariableContent,
@ -27,7 +27,7 @@ type Props = {
indices: StepIndices indices: StepIndices
} }
export const StepNodeContent = ({ step, indices }: Props) => { export const StepNodeContent = ({ step, indices }: Props) => {
if (isInputStep(step) && step.options.variableId) { if (isInputStep(step) && !isChoiceInput(step) && step.options.variableId) {
return <WithVariableContent step={step} /> return <WithVariableContent step={step} />
} }
switch (step.type) { switch (step.type) {