[FIX] web: Setting disable_favorites on Search View causes Exception
This commit is contained in:
@@ -337,7 +337,7 @@ var SearchView = View.extend({
|
||||
},
|
||||
set_default_filters: function () {
|
||||
var self = this,
|
||||
default_custom_filter = this.$buttons && this.favorite_menu.get_default_filter();
|
||||
default_custom_filter = this.$buttons && this.favorite_menu && this.favorite_menu.get_default_filter();
|
||||
if (!self.options.disable_custom_filters && default_custom_filter) {
|
||||
return this.favorite_menu.toggle_filter(default_custom_filter, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user