Backwards compatible to old chats
This commit is contained in:
parent
48ce3d96af
commit
7828b71c55
|
@ -110,7 +110,7 @@
|
||||||
<div class="level-left">
|
<div class="level-left">
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
<p class="subtitle is-5">
|
<p class="subtitle is-5">
|
||||||
{chat.name}
|
{chat.name || `Chat ${chat.id}`}
|
||||||
<a
|
<a
|
||||||
href={"#"}
|
href={"#"}
|
||||||
class="greyscale ml-2 is-hidden editbutton"
|
class="greyscale ml-2 is-hidden editbutton"
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
class="panel-block {!apiKey ? 'is-disabled' : ''} {activeChatId === chat.id
|
class="panel-block {!apiKey ? 'is-disabled' : ''} {activeChatId === chat.id
|
||||||
? 'has-background-light'
|
? 'has-background-light'
|
||||||
: ''}"
|
: ''}"
|
||||||
on:click|preventDefault={() => (activeChatId = chat.id)}>{chat.name}</a
|
on:click|preventDefault={() => (activeChatId = chat.id)}>{chat.name || `Chat ${chat.id}`}</a
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
{/each}
|
{/each}
|
||||||
|
|
Loading…
Reference in New Issue