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 af19ac6 commit a37205dCopy full SHA for a37205d
src/components/Channel/Channel.js
@@ -195,7 +195,7 @@ const Channel = (props) => {
195
const initChannel = async () => {
196
let initError = false;
197
198
- if (!channel.initialized) {
+ if (!channel.initialized && channel.cid) {
199
try {
200
await channel.watch();
201
} catch (e) {
src/components/Channel/__tests__/Channel.test.js
@@ -76,7 +76,7 @@ describe('Channel', () => {
76
cleanup();
77
});
78
79
- it('should render simple text if the channel prop is not provided', async () => {
+ it('should render a simple text error if the channel id does not exist', async () => {
80
const nullChannel = { ...channel, cid: null };
81
const { getByTestId } = renderComponent({ channel: nullChannel });
82
0 commit comments