diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-10-05 20:12:25 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-10-05 20:23:54 -0400 |
| commit | 8edd5625ad5dde0ef1637d5c89e9901b3ee65d73 (patch) | |
| tree | 2dfa09776511bdae04e116a478a605957d2db2fe /hi-ui/src/lib/ChannelList.svelte | |
| parent | bc514e0ea5f0a553f15ab8275961907877181520 (diff) | |
Provide named operations for stored state.
Diffstat (limited to 'hi-ui/src/lib/ChannelList.svelte')
| -rw-r--r-- | hi-ui/src/lib/ChannelList.svelte | 4 |
1 files changed, 2 insertions, 2 deletions
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> |
