mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 05:45:19 +00:00
Fix "Cannot read properties of undefined (reading 'startsWith')"
This commit is contained in:
parent
e7560a5acf
commit
5639ba423b
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
export let token;
|
export let token;
|
||||||
export let onClick: Function = () => {};
|
export let onClick: Function = () => {};
|
||||||
|
|
||||||
let attributes: Record<string, string> = {};
|
let attributes: Record<string, string | undefined> = {};
|
||||||
|
|
||||||
function extractAttributes(input: string): Record<string, string> {
|
function extractAttributes(input: string): Record<string, string> {
|
||||||
const regex = /(\w+)="([^"]*)"/g;
|
const regex = /(\w+)="([^"]*)"/g;
|
||||||
|
|
@ -42,6 +42,6 @@
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span class="line-clamp-1">
|
<span class="line-clamp-1">
|
||||||
{formattedTitle(attributes.title)}
|
{attributes.title ? formattedTitle(attributes.title) : ''}
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue