Glaring equals error, add specifics
This commit is contained in:
parent
e3d4e8b108
commit
ffd604acc8
1 changed files with 2 additions and 1 deletions
|
|
@ -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') ?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue