From 2201a902786d15deec9eb6ec20d9c933c330dbe7 Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Wed, 28 May 2014 16:47:03 +0530 Subject: [PATCH] Fix: Do not throw error if not flags are allowed. --- brewman/static/scripts/angular_service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brewman/static/scripts/angular_service.js b/brewman/static/scripts/angular_service.js index 0c615214..63a68967 100644 --- a/brewman/static/scripts/angular_service.js +++ b/brewman/static/scripts/angular_service.js @@ -284,7 +284,7 @@ overlord_service.factory('Tokenizer', ['$filter', function ($filter) { } if (key !== '' && value !== '' && key in comparator) { matches.push(pushObject(comparator[key], value)); - } else if (key !== '' && key in searchInfo.flags) { + } else if (key !== '' && !angular.isUndefined(searchInfo.flags) && key in searchInfo.flags) { flags[key] = value; } }