diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-10-08 22:10:04 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-10-09 11:45:31 -0400 |
| commit | 653e2de752a97e377fc9963ba60d9408e7089528 (patch) | |
| tree | a707919c0c0cb3c84ec3ea624ae8cd87059f28ac /hi-ui/src/store/channels.js | |
| parent | dd62b823e01934a0f841256fdb17b551091896bf (diff) | |
Flatten nested `channel` and `message` structs in events and API responses.
This structure didn't accomplish anything and made certain refactorings harder.
Diffstat (limited to 'hi-ui/src/store/channels.js')
| -rw-r--r-- | hi-ui/src/store/channels.js | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |
