diff --git a/packages/builder/src/components/automation/AutomationPanel/EditAutomationPopover.svelte b/packages/builder/src/components/automation/AutomationPanel/EditAutomationPopover.svelte
index a99a16e240..81c38e553b 100644
--- a/packages/builder/src/components/automation/AutomationPanel/EditAutomationPopover.svelte
+++ b/packages/builder/src/components/automation/AutomationPanel/EditAutomationPopover.svelte
@@ -1,4 +1,4 @@
-
diff --git a/packages/builder/src/components/backend/DatasourceNavigator/popovers/EditDatasourcePopover.svelte b/packages/builder/src/components/backend/DatasourceNavigator/popovers/EditDatasourcePopover.svelte
index c7842001d0..4cac41d63d 100644
--- a/packages/builder/src/components/backend/DatasourceNavigator/popovers/EditDatasourcePopover.svelte
+++ b/packages/builder/src/components/backend/DatasourceNavigator/popovers/EditDatasourcePopover.svelte
@@ -24,7 +24,7 @@
async function deleteDatasource() {
await backendUiStore.actions.datasources.delete(datasource)
notifier.success("Datasource deleted")
- $goto('./datasource')
+ $goto("./datasource")
hideEditor()
}
diff --git a/packages/builder/src/components/deploy/DeploymentHistory.svelte b/packages/builder/src/components/deploy/DeploymentHistory.svelte
index c49abd433e..0933b1a676 100644
--- a/packages/builder/src/components/deploy/DeploymentHistory.svelte
+++ b/packages/builder/src/components/deploy/DeploymentHistory.svelte
@@ -119,11 +119,13 @@
{#if deployment.status.toLowerCase() === 'pending'}
{/if}
-
showErrorReasonModal(deployment.err)} class={`deployment-status ${deployment.status}`}>
+
showErrorReasonModal(deployment.err)}
+ class={`deployment-status ${deployment.status}`}>
{deployment.status}
{#if deployment.status === DeploymentStatus.FAILURE}
-
+
{/if}
diff --git a/packages/builder/src/pages/[application]/automate/[automation]/index.svelte b/packages/builder/src/pages/[application]/automate/[automation]/index.svelte
index 031a72fad3..1a15ed48c6 100644
--- a/packages/builder/src/pages/[application]/automate/[automation]/index.svelte
+++ b/packages/builder/src/pages/[application]/automate/[automation]/index.svelte
@@ -1,6 +1,5 @@
-
+
-
\ No newline at end of file
diff --git a/packages/builder/src/pages/[application]/automate/index.svelte b/packages/builder/src/pages/[application]/automate/index.svelte
index 98e5b80a18..f6568417a8 100644
--- a/packages/builder/src/pages/[application]/automate/index.svelte
+++ b/packages/builder/src/pages/[application]/automate/index.svelte
@@ -1,18 +1,19 @@
Create your first automation to get started
@@ -23,4 +24,4 @@
color: var(--grey-5);
margin-top: 2px;
}
-
\ No newline at end of file
+
diff --git a/packages/builder/src/pages/[application]/data/_layout.svelte b/packages/builder/src/pages/[application]/data/_layout.svelte
index 0674c93c88..5a31d7db92 100644
--- a/packages/builder/src/pages/[application]/data/_layout.svelte
+++ b/packages/builder/src/pages/[application]/data/_layout.svelte
@@ -17,11 +17,11 @@
},
]
- let tab = $isActive('./datasource') ? "datasource" : "table"
+ let tab = $isActive("./datasource") ? "datasource" : "table"
function selectFirstTableOrSource({ detail }) {
const type = detail.heading.key
- if (type === 'datasource') {
+ if (type === "datasource") {
$goto("./datasource")
} else {
$goto("./table")
@@ -34,7 +34,10 @@
-
+
m._id === $params.query
- )
+ const query = $backendUiStore.queries.find(m => m._id === $params.query)
if (query) {
backendUiStore.actions.queries.select(query)
}
diff --git a/packages/builder/src/pages/[application]/data/datasource/index.svelte b/packages/builder/src/pages/[application]/data/datasource/index.svelte
index b1c7708465..00b08fb7b7 100644
--- a/packages/builder/src/pages/[application]/data/datasource/index.svelte
+++ b/packages/builder/src/pages/[application]/data/datasource/index.svelte
@@ -1,22 +1,23 @@
-
- {#if $backendUiStore.tables.length === 0}
- Connect your first datasource to start building.
- {:else}Select a datasource to edit{/if}
-
-
\ No newline at end of file
+ onMount(async () => {
+ // navigate to first table in list, if not already selected
+ $backendUiStore.datasources.length > 0 &&
+ $goto(`../${$backendUiStore.datasources[0]._id}`)
+ })
+
+
+{#if $backendUiStore.tables.length === 0}
+ Connect your first datasource to start building.
+{:else}Select a datasource to edit{/if}
+
+
diff --git a/packages/builder/src/pages/[application]/data/table/index.svelte b/packages/builder/src/pages/[application]/data/table/index.svelte
index d1659257d4..134d9e510f 100644
--- a/packages/builder/src/pages/[application]/data/table/index.svelte
+++ b/packages/builder/src/pages/[application]/data/table/index.svelte
@@ -4,7 +4,8 @@
import { onMount } from "svelte"
onMount(async () => {
- $backendUiStore.tables.length > 0 && $goto(`../${$backendUiStore.tables[0]._id}`)
+ $backendUiStore.tables.length > 0 &&
+ $goto(`../${$backendUiStore.tables[0]._id}`)
})