Skip to content

Commit 16701be

Browse files
authored
fix: show floating action buttons when chat model is unavailable (open-webui#22149)
1 parent 8a6af40 commit 16701be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/components/chat/Messages/ContentRenderer.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
/>
196196
</div>
197197
198-
{#if floatingButtons && model}
198+
{#if floatingButtons}
199199
<FloatingButtons
200200
bind:this={floatingButtonsElement}
201201
{id}
@@ -205,7 +205,7 @@
205205
? model?.id
206206
: (selectedModels ?? []).length > 0
207207
? selectedModels.at(0)
208-
: model?.id}
208+
: model?.id ?? null}
209209
messages={createMessagesList(history, messageId)}
210210
onAdd={({ modelId, parentId, messages }) => {
211211
console.log(modelId, parentId, messages);

0 commit comments

Comments
 (0)