From b26b5334067a5e0e853421879accb82f774e8ac4 Mon Sep 17 00:00:00 2001 From: gxz Date: Wed, 29 May 2024 15:29:39 +0800 Subject: [PATCH] chore: destChannelNames count issue NMS-21304 --- .../examples/advanced/ChannelMediaRelay/ChannelMediaRelay.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/src/examples/advanced/ChannelMediaRelay/ChannelMediaRelay.tsx b/example/src/examples/advanced/ChannelMediaRelay/ChannelMediaRelay.tsx index 57e6fe45..16bf0196 100644 --- a/example/src/examples/advanced/ChannelMediaRelay/ChannelMediaRelay.tsx +++ b/example/src/examples/advanced/ChannelMediaRelay/ChannelMediaRelay.tsx @@ -191,7 +191,7 @@ export default class ChannelMediaRelay <> { - this.setState({ destChannelNames: text.split(' ') }); + this.setState({ destChannelNames: text ? text.split(' ') : [] }); }} placeholder={'destChannelNames (split by blank)'} value={destChannelNames.join(' ')}