mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-10 22:43:29 +00:00
fix: add lang="ts" to Svelte script tags using TypeScript syntax (#21001)
fix: add lang="ts" to Svelte script tags using TypeScript syntax Two Svelte components were using TypeScript type annotations (ReturnType<typeof setTimeout>) but their script tags were missing the lang="ts" attribute. This caused Vite/Svelte to parse them as plain JavaScript, resulting in parse errors. Fixed files: - src/lib/components/admin/Users/UserList.svelte - src/lib/components/channel/ChannelInfoModal/UserList.svelte
This commit is contained in:
parent
6e182940e2
commit
c111fa0837
1 changed files with 1 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
<script>
|
||||
<script lang="ts">
|
||||
import { WEBUI_API_BASE_URL, WEBUI_BASE_URL } from '$lib/constants';
|
||||
import { WEBUI_NAME, config, user as _user, showSidebar } from '$lib/stores';
|
||||
import { goto } from '$app/navigation';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue