Skip to content

Commit

Permalink
Merge pull request open-webui#3952 from open-webui/dev
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
tjbck authored Jul 17, 2024
2 parents c74e7df + 1e7a364 commit 82079e6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lib/components/chat/Controls/Controls.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<div>
<div class="mb-1.5 font-medium">{$i18n.t('Files')}</div>

<div>
{#each chatFiles as file}
<div class="flex flex-col gap-1">
{#each chatFiles as file, fileIdx}
<FileItem
className="w-full"
url={`${file?.url}`}
Expand All @@ -43,7 +43,9 @@
dismissible={true}
on:dismiss={() => {
// Remove the file from the chatFiles array
chatFiles = chatFiles.filter((f) => f.id !== file.id);

chatFiles.splice(fileIdx, 1);
chatFiles = chatFiles;
}}
/>
{/each}
Expand Down

0 comments on commit 82079e6

Please sign in to comment.