From 653e2de752a97e377fc9963ba60d9408e7089528 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Tue, 8 Oct 2024 22:10:04 -0400 Subject: Flatten nested `channel` and `message` structs in events and API responses. This structure didn't accomplish anything and made certain refactorings harder. --- hi-ui/src/store/channels.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hi-ui/src/store/channels.js') diff --git a/hi-ui/src/store/channels.js b/hi-ui/src/store/channels.js index 20702cc..bb6c86c 100644 --- a/hi-ui/src/store/channels.js +++ b/hi-ui/src/store/channels.js @@ -9,8 +9,8 @@ export class Channels { return this; } - addChannel(channel) { - this.channels = [...this.channels, channel]; + addChannel(id, name) { + this.channels = [...this.channels, { id, name }]; this.sort(); return this; } -- cgit v1.2.3