Skip to content

Commit 4a12786

Browse files
committed
silent release
1 parent 6da1347 commit 4a12786

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/routes/settings/+layout.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
1111
import UserIcon from "~icons/carbon/user";
1212
import { fade, fly } from "svelte/transition";
13+
import { PUBLIC_APP_ASSETS } from "$env/static/public";
1314
export let data;
1415
1516
let previousPage: string = base;
@@ -21,6 +22,8 @@
2122
});
2223
2324
const settings = useSettingsStore();
25+
26+
const isHuggingChat = PUBLIC_APP_ASSETS === "huggingchat";
2427
</script>
2528

2629
<div
@@ -67,7 +70,8 @@
6770
{/if}
6871
</a>
6972
{/each}
70-
{#if data.enableAssistants}
73+
<!-- if its huggingchat, the number of assistants owned by the user must be non-zero to show the UI -->
74+
{#if data.enableAssistants && (!isHuggingChat || data.assistants.length >= 1)}
7175
<h3 class="pb-3 pl-3 pt-5 text-[.8rem] text-gray-800 sm:pl-1">Assistants</h3>
7276
{#each data.assistants as assistant}
7377
<a

0 commit comments

Comments
 (0)