File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 10
10
11
11
import UserIcon from " ~icons/carbon/user" ;
12
12
import { fade , fly } from " svelte/transition" ;
13
+ import { PUBLIC_APP_ASSETS } from " $env/static/public" ;
13
14
export let data;
14
15
15
16
let previousPage: string = base ;
21
22
});
22
23
23
24
const settings = useSettingsStore ();
25
+
26
+ const isHuggingChat = PUBLIC_APP_ASSETS === " huggingchat" ;
24
27
</script >
25
28
26
29
<div
67
70
{/if }
68
71
</a >
69
72
{/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 )}
71
75
<h3 class =" pb-3 pl-3 pt-5 text-[.8rem] text-gray-800 sm:pl-1" >Assistants</h3 >
72
76
{#each data .assistants as assistant }
73
77
<a
You can’t perform that action at this time.
0 commit comments