Backwards compatible to old chats

This commit is contained in:
Niek van der Maas 2023-03-05 21:14:59 +01:00
parent 48ce3d96af
commit 7828b71c55
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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}