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,12 +137,9 @@ export default ['$stateParams', '$scope', '$state', 'QuerySet', 'GetBasePath', '
else {
encodeParams.searchTerm = true;
}
}
removed = qs.encodeParam(encodeParams);
}
else {
removed = setDefaults(tagToRemove);
}
}
_.each(removed, (value, key) => {
if (Array.isArray(queryset[key])){
_.remove(queryset[key], (item) => item === value);