compose: Fix video call button when Big Blue Button isn’t enabled.

Fixes ‘Uncaught TypeError: can't access property "id",
available_providers.big_blue_button is undefined’ introduced by commit
a389c7390d (#14775).

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-06-22 17:29:27 -07:00
committed by Anders Kaseorg
parent 978f25d4ac
commit 8b2d6806ea

View File

@@ -1123,7 +1123,9 @@ exports.initialize = function () {
);
}
} else if (
page_params.realm_video_chat_provider === available_providers.big_blue_button.id) {
available_providers.big_blue_button
&& page_params.realm_video_chat_provider === available_providers.big_blue_button.id
) {
channel.get({
url: '/json/calls/bigbluebutton/create',