Unverified Commit 95ff3557 authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #3094 from open-webui/dev

fix: chat deletion
parents 8f3c9b39 c2d41b03
...@@ -58,11 +58,11 @@ ...@@ -58,11 +58,11 @@
<button <button
class="p-1 px-3 text-xs flex rounded transition" class="p-1 px-3 text-xs flex rounded transition"
on:click={() => { on:click={() => {
permissions.chat.deletion = !permissions.chat.deletion; permissions.chat.deletion = !(permissions?.chat?.deletion ?? true);
}} }}
type="button" type="button"
> >
{#if permissions.chat.deletion} {#if permissions?.chat?.deletion ?? true}
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16" viewBox="0 0 16 16"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment