Skip to content

Commit d17a631

Browse files
committed
fix: channels set
1 parent 0ef2a57 commit d17a631

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/web/src/client.ts.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,9 @@ class Client {
427427
}
428428

429429
const channels = new URLSearchParams();
430-
channels.set('project', this.config.project);
430+
if (this.config.project) {
431+
channels.set('project', this.config.project);
432+
}
431433
this.realtime.channels.forEach(channel => {
432434
channels.append('channels[]', channel);
433435
});

0 commit comments

Comments
 (0)