mirror of
https://github.com/open-webui/open-webui.git
synced 2026-02-24 12:11:56 +01: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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user