mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 17:52:46 +08:00
DEV: prevents Firefox ESR tests to crash on ||=
(#14758)
A follow up PR should investigate why `proposal-logical-assignment-operators` is not getting used here (test file?) but this should be enough to get things running.
This commit is contained in:
parent
ba3078e098
commit
9e19b22f64
|
@ -35,8 +35,10 @@ export default function (helper) {
|
|||
}
|
||||
|
||||
export function getChannelInfo(name) {
|
||||
channels[name] ||= { count: 0, users: [], last_message_id: 0 };
|
||||
return channels[name];
|
||||
return (
|
||||
channels[name] ||
|
||||
(channels[name] = { count: 0, users: [], last_message_id: 0 })
|
||||
);
|
||||
}
|
||||
|
||||
export function joinChannel(name, user) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user