Fixed bug where you couldn't delete the standard out search tags if there was more than one.

This commit is contained in:
Michael Abashian
2017-01-23 15:39:41 -05:00
parent 5036416491
commit 7c970becaa

View File

@@ -137,11 +137,8 @@ export default ['$stateParams', '$scope', '$state', 'QuerySet', 'GetBasePath', '
else {
encodeParams.searchTerm = true;
}
removed = qs.encodeParam(encodeParams);
}
else {
removed = setDefaults(tagToRemove);
}
removed = qs.encodeParam(encodeParams);
}
_.each(removed, (value, key) => {
if (Array.isArray(queryset[key])){