mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 02:07:15 +00:00
fix: Uncaught (in promise) TypeError: locales is undefined in Collapsible.svelte
This commit is contained in:
parent
25157ca6ba
commit
86111ad44a
@ -13,6 +13,9 @@
|
|||||||
dayjs.extend(relativeTime);
|
dayjs.extend(relativeTime);
|
||||||
|
|
||||||
async function loadLocale(locales) {
|
async function loadLocale(locales) {
|
||||||
|
if (!locales || !Array.isArray(locales)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
for (const locale of locales) {
|
for (const locale of locales) {
|
||||||
try {
|
try {
|
||||||
dayjs.locale(locale);
|
dayjs.locale(locale);
|
||||||
|
Loading…
Reference in New Issue
Block a user