From f4add0a180c220fa69163b21a3349357edbbcf6e Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 16 Dec 2021 10:03:59 +0000 Subject: [PATCH] Hide 'Body' tab for REST API datasources when using a GET query --- .../rest/[query]/index.svelte | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte b/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte index 39d02d5dd8..1c0a581b93 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte @@ -260,16 +260,18 @@ headings /> - - option.name} - getOptionValue={option => option.value} - /> - - + {#if query?.queryVerb !== "read"} + + option.name} + getOptionValue={option => option.value} + /> + + + {/if} {#if !$flags.queryTransformerBanner}