Merge pull request #3094 from open-webui/dev

fix: chat deletion
This commit is contained in:
Timothy Jaeryang Baek 2024-06-12 11:23:31 -07:00 committed by GitHub
commit 95ff355737
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,11 +58,11 @@
<button
class="p-1 px-3 text-xs flex rounded transition"
on:click={() => {
permissions.chat.deletion = !permissions.chat.deletion;
permissions.chat.deletion = !(permissions?.chat?.deletion ?? true);
}}
type="button"
>
{#if permissions.chat.deletion}
{#if permissions?.chat?.deletion ?? true}
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"