Glaring equals error, add specifics

This commit is contained in:
pratu16x7 2017-03-07 17:29:35 +05:30
parent e3d4e8b108
commit ffd604acc8

View file

@ -93,7 +93,8 @@ frappe.search.AwesomeBar = Class.extend({
var out = [], routes = [];
me.options.forEach(function(option) {
if(option.route) {
if(option.route[0] = "List") {
if(option.route[0] === "List" && (option.route[0] === "Gantt"
|| option.route[0] === "Calendar")) {
option.route.splice(2, 1);
}
var str_route = (typeof option.route==='string') ?