Fix updateChannel crashing (#456)

This commit is contained in:
Manuel Kraus
2016-07-11 21:13:19 +02:00
committed by abal
parent 7ae7a9aa34
commit cd2642c293
2 changed files with 2 additions and 2 deletions

View File

@@ -1668,7 +1668,7 @@ var InternalClient = (function () {
topic: data.topic || channel.topic,
position: data.position ? data.position : channel.position,
user_limit: data.userLimit ? data.userLimit : channel.userLimit,
bitrate: data.bitrate ? data.bitrate : channel.bitrate
bitrate: data.bitrate ? data.bitrate : channel.bitrate ? channel.bitrate : undefined
};
if (data.position < 0) {