diff --git a/apps/api/src/lib/common.ts b/apps/api/src/lib/common.ts index 6170d380c..d67125db3 100644 --- a/apps/api/src/lib/common.ts +++ b/apps/api/src/lib/common.ts @@ -260,8 +260,8 @@ export const supportedServiceTypesAndVersions = [ fancyName: 'Hasura', baseImage: 'hasura/graphql-engine', images: ['postgres:12-alpine'], - versions: ['latest', 'v2.8.4', 'v2.5.1'], - recommendedVersion: 'v2.8.4', + versions: ['latest', 'v2.10.0', 'v2.5.1'], + recommendedVersion: 'v2.10.0', ports: { main: 8080 } diff --git a/apps/ui/src/lib/common.ts b/apps/ui/src/lib/common.ts index 32485a522..08b863d57 100644 --- a/apps/ui/src/lib/common.ts +++ b/apps/ui/src/lib/common.ts @@ -131,8 +131,8 @@ export const supportedServiceTypesAndVersions = [ fancyName: 'Hasura', baseImage: 'hasura/graphql-engine', images: ['postgres:12-alpine'], - versions: ['latest', 'v2.5.1'], - recommendedVersion: 'v2.5.1', + versions: ['latest', 'v2.10.0', 'v2.5.1'], + recommendedVersion: 'v2.10.0', ports: { main: 8080 } diff --git a/apps/ui/src/routes/applications/[id]/configuration/destination.svelte b/apps/ui/src/routes/applications/[id]/configuration/destination.svelte index 2bfe98a5c..5265ec452 100644 --- a/apps/ui/src/routes/applications/[id]/configuration/destination.svelte +++ b/apps/ui/src/routes/applications/[id]/configuration/destination.svelte @@ -31,6 +31,7 @@ import { t } from '$lib/translations'; import { appSession } from '$lib/store'; import { errorNotification } from '$lib/common'; + import { onMount } from 'svelte/types/runtime/internal/lifecycle'; const { id } = $page.params; const from = $page.url.searchParams.get('from'); @@ -55,6 +56,11 @@ return errorNotification(error); } } + onMount(async () => { + if (destinations.length === 1) { + await handleSubmit(destinations[0].id); + } + });