2
0

🚸 (webhook) Show save in variables accordion only when needed

This commit is contained in:
Baptiste Arnaud
2023-06-16 07:32:21 +02:00
parent a64e621432
commit e54aab452a

View File

@@ -208,6 +208,7 @@ export const WebhookAdvancedConfigForm = ({
{testResponse && ( {testResponse && (
<CodeEditor isReadOnly lang="json" value={testResponse} /> <CodeEditor isReadOnly lang="json" value={testResponse} />
)} )}
{(testResponse || options.responseVariableMapping.length > 0) && (
<Accordion allowMultiple> <Accordion allowMultiple>
<AccordionItem> <AccordionItem>
<AccordionButton justifyContent="space-between"> <AccordionButton justifyContent="space-between">
@@ -224,6 +225,7 @@ export const WebhookAdvancedConfigForm = ({
</AccordionPanel> </AccordionPanel>
</AccordionItem> </AccordionItem>
</Accordion> </Accordion>
)}
</> </>
) )
} }