diff --git a/packages/bbui/src/Button/Button.svelte b/packages/bbui/src/Button/Button.svelte
index 9e0a7ff52a..67930b8030 100644
--- a/packages/bbui/src/Button/Button.svelte
+++ b/packages/bbui/src/Button/Button.svelte
@@ -45,6 +45,18 @@
{#if $$slots}
{/if}
+ {#if !disabled && tooltip}
+
+
+
+ {/if}
{#if showTooltip && tooltip}
@@ -84,4 +96,8 @@
width: 0;
height: 0;
}
+ .tooltip-icon {
+ padding-left: var(--spacing-m);
+ line-height: 0;
+ }
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 a509574358..6025758e71 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
@@ -59,7 +59,9 @@
$: schemaReadOnly = !responseSuccess
$: variablesReadOnly = !responseSuccess
$: showVariablesTab = shouldShowVariables(dynamicVariables, variablesReadOnly)
- $: hasSchema = !!query?.schema
+ $: hasSchema =
+ Object.keys(schema || {}).length !== 0 ||
+ Object.keys(query?.schema || {}).length !== 0
function getSelectedQuery() {
return cloneDeep(
@@ -318,10 +320,8 @@