mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 17:47:44 -05:00
fix: show floating action buttons when chat model is unavailable (#22149)
This commit is contained in:
@@ -195,7 +195,7 @@
|
||||
/>
|
||||
</div>
|
||||
|
||||
{#if floatingButtons && model}
|
||||
{#if floatingButtons}
|
||||
<FloatingButtons
|
||||
bind:this={floatingButtonsElement}
|
||||
{id}
|
||||
@@ -205,7 +205,7 @@
|
||||
? model?.id
|
||||
: (selectedModels ?? []).length > 0
|
||||
? selectedModels.at(0)
|
||||
: model?.id}
|
||||
: model?.id ?? null}
|
||||
messages={createMessagesList(history, messageId)}
|
||||
onAdd={({ modelId, parentId, messages }) => {
|
||||
console.log(modelId, parentId, messages);
|
||||
|
||||
Reference in New Issue
Block a user