Skip to content

Commit 3fd838e

Browse files
committed
fix issue with settings modal
1 parent 6fc4a59 commit 3fd838e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/lib/components/SettingsModal.svelte

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import { PUBLIC_APP_DATA_SHARING } from "$env/static/public";
1111
import type { Model } from "$lib/types/Model";
1212
13-
export let settings: Pick<Settings, "shareConversationsWithModelAuthors">;
13+
export let settings: Settings;
1414
export let models: Array<Model>;
1515
1616
let shareConversationsWithModelAuthors = settings.shareConversationsWithModelAuthors;
@@ -37,9 +37,14 @@
3737
>
3838
{#if PUBLIC_APP_DATA_SHARING}
3939
<label class="flex cursor-pointer select-none items-center gap-2 text-gray-500">
40-
{#each Object.entries(settings).filter(([k]) => k !== "shareConversationsWithModelAuthors") as [key, val]}
40+
{#each Object.entries(settings).filter(([k]) => !(k === "shareConversationsWithModelAuthors" || k === "customPrompts")) as [key, val]}
4141
<input type="hidden" name={key} value={val} />
4242
{/each}
43+
<input
44+
type="hidden"
45+
name="customPrompts"
46+
value={JSON.stringify(settings.customPrompts)}
47+
/>
4348
<Switch
4449
name="shareConversationsWithModelAuthors"
4550
bind:checked={shareConversationsWithModelAuthors}

0 commit comments

Comments
 (0)