diff --git a/packages/builder/src/components/integration/QueryViewer.svelte b/packages/builder/src/components/integration/QueryViewer.svelte index e78917af13..a43467172b 100644 --- a/packages/builder/src/components/integration/QueryViewer.svelte +++ b/packages/builder/src/components/integration/QueryViewer.svelte @@ -9,6 +9,8 @@ Heading, Spacer, Switcher, + Tabs, + Tab } from "@budibase/bbui" import { notifications, Divider } from "@budibase/bbui" import api from "builderStore/api" @@ -185,15 +187,15 @@ - + Below, you can preview the results from your query and change the schema.
{#if data} - - {#if tab === 'JSON'} + +
                 
@@ -202,10 +204,9 @@
                 {:else}
                   {JSON.stringify(data[0], undefined, 2)}
                 {/if}
-            
- {:else if tab === 'PREVIEW'} - - {:else if tab === 'SCHEMA'} + +
+ {#each fields as field, idx}
@@ -218,8 +219,11 @@ {/each} - {/if} - + + + + + {/if}