From 8edd5625ad5dde0ef1637d5c89e9901b3ee65d73 Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Sat, 5 Oct 2024 20:12:25 -0400
Subject: Provide named operations for stored state.

---
 hi-ui/src/lib/CreateChannelForm.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'hi-ui/src/lib/CreateChannelForm.svelte')

diff --git a/hi-ui/src/lib/CreateChannelForm.svelte b/hi-ui/src/lib/CreateChannelForm.svelte
index 70dc13d..aa415fd 100644
--- a/hi-ui/src/lib/CreateChannelForm.svelte
+++ b/hi-ui/src/lib/CreateChannelForm.svelte
@@ -10,7 +10,7 @@
         disabled = true;
         const response = await createChannel(name);
         if (200 <= response.status && response.status < 300) {
-            channelsList.update((value) => [...value, response.data]);
+            channelsList.update((value) => value.addChannel(response.data));
             name = '';
         }
         disabled = false;
-- 
cgit v1.2.3

