Commit 6a2e9f7b authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix crash when comments not enabled.

Default Docs.Comments#getCount to return 0 when comments aren't enabled.
parent 9e4fd85b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ Ext.define('Docs.Comments', {
     * @inheritdoc Docs.CommentCounts#get
     */
    getCount: function(target) {
        return this.counts.get(target);
        return this.enabled ? this.counts.get(target) : 0;
    },

    /**