mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: Handle null
flag values
This commit is contained in:
parent
1a890fa9cf
commit
208cf41e6c
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ const SiteHeaderComponent = MountWidget.extend({
|
|||
|
||||
buildArgs() {
|
||||
return {
|
||||
flagCount: _flagProperties.reduce((prev, cur) => prev + this.get(cur), 0),
|
||||
flagCount: _flagProperties.reduce((prev, cur) => prev + (this.get(cur) || 0), 0),
|
||||
topic: this._topic,
|
||||
canSignUp: this.get('canSignUp')
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue