mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-18 04:43:55 +00:00
fix: folder page never shows its chats (#32526)
On dev, opening a folder's page showed a spinner forever and never listed its chats, because the date next to each chat could not be formatted after the search dialog rewrite. The folder page now loads the date format it needs itself, so its chat list shows again. Fixes #32525
This commit is contained in:
parent
823670d9fa
commit
0dd18050a6
1 changed files with 2 additions and 0 deletions
|
|
@ -10,6 +10,7 @@
|
|||
const i18n: Writable<ChatListI18n> = getContext('i18n');
|
||||
|
||||
import dayjs from 'dayjs';
|
||||
import calendar from 'dayjs/plugin/calendar';
|
||||
import localizedFormat from 'dayjs/plugin/localizedFormat';
|
||||
import { getTimeRange } from '$lib/utils';
|
||||
import type { ChatParticipant } from '$lib/apis/folders';
|
||||
|
|
@ -21,6 +22,7 @@
|
|||
import Spinner from '$lib/components/common/Spinner.svelte';
|
||||
import { chatId, socket } from '$lib/stores';
|
||||
|
||||
dayjs.extend(calendar);
|
||||
dayjs.extend(localizedFormat);
|
||||
|
||||
type ChatListItem = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue