From cb49172e988200210bee52aacc2902792138b0c5 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Tue, 29 Jul 2025 15:02:13 -0500 Subject: [PATCH] Fix bug where creating a channel from a stream that isn't displayed in the table has invalid stream name. --- frontend/src/api.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/frontend/src/api.js b/frontend/src/api.js index effc0bdd..ddaccbc7 100644 --- a/frontend/src/api.js +++ b/frontend/src/api.js @@ -1675,4 +1675,18 @@ export default class API { errorNotification('Failed to trigger stream rehash', e); } } + + static async getStreamsByIds(ids) { + try { + const params = new URLSearchParams(); + params.append('ids', ids.join(',')); + const response = await request( + `${host}/api/channels/streams/?${params.toString()}` + ); + + return response.results || response; + } catch (e) { + errorNotification('Failed to retrieve streams by IDs', e); + } + } }