mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 12:36:25 +08:00

This commit is fixing the path which sets a default value to trigger. We were doing `if (!this.model.trigger)` but `this.model.trigger` can have `0` as value, which would trigger this codepath and this codepath was setting the first value of `badgeTriggers` as a default value for trigger.