0) {
selectedModelIdx = models.length - 1;
}
+
+ onMount(() => {
+ mounted = true;
+ });
-{#if models.length > 0}
+{#key mounted}
-
+
{#each models as model, modelIdx}
diff --git a/src/routes/(app)/c/[id]/+page.svelte b/src/routes/(app)/c/[id]/+page.svelte
index 225fa2ae3..5d7429e59 100644
--- a/src/routes/(app)/c/[id]/+page.svelte
+++ b/src/routes/(app)/c/[id]/+page.svelte
@@ -5,7 +5,6 @@
import { onMount, tick, getContext } from 'svelte';
import { goto } from '$app/navigation';
import { page } from '$app/stores';
-
import {
models,
modelfiles,
@@ -860,8 +859,8 @@
{#if loaded}