FIX: Handle `null` flag values
This commit is contained in:
parent
1a890fa9cf
commit
208cf41e6c
|
@ -91,7 +91,7 @@ const SiteHeaderComponent = MountWidget.extend({
|
||||||
|
|
||||||
buildArgs() {
|
buildArgs() {
|
||||||
return {
|
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,
|
topic: this._topic,
|
||||||
canSignUp: this.get('canSignUp')
|
canSignUp: this.get('canSignUp')
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue