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/ChannelList.svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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

diff --git a/hi-ui/src/lib/ChannelList.svelte b/hi-ui/src/lib/ChannelList.svelte
index 9f88e24..5577d94 100644
--- a/hi-ui/src/lib/ChannelList.svelte
+++ b/hi-ui/src/lib/ChannelList.svelte
@@ -9,12 +9,12 @@
     let loading = true;
 
     channelsList.subscribe((value) => {
-        channels = value;
+        channels = value.channels;
     });
 
 	onMount(async () => {
         let channels = await listChannels();
-        channelsList.update(() => channels.data);
+        channelsList.update((value) => value.setChannels(channels.data));
         loading = false;
     });
 </script>
-- 
cgit v1.2.3

