We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5adc4e1 commit 65c43aeCopy full SHA for 65c43ae
lib/components/ObsSwitcher.js
@@ -150,7 +150,7 @@ class ObsSwitcher extends _events.default {
150
var publish = result.rtmp.server[0].application.find(stream => {
151
return stream.name[0] === application;
152
}).live[0].stream;
153
- var stream = publish.find(stream => {
+ var stream = publish === null || publish === void 0 ? void 0 : publish.find(stream => {
154
return stream.name[0] === key;
155
});
156
src/components/ObsSwitcher.js
@@ -210,7 +210,7 @@ class ObsSwitcher extends EventEmitter {
210
}
211
).live[0].stream;
212
213
- const stream = publish.find((stream) => {
+ const stream = publish?.find((stream) => {
214
215
216
0 commit comments