[Search] Checks for folders

Search now (again) checks to not add
folders to the results list. This later
should be made into a policy.
This commit is contained in:
shale 2015-07-14 09:45:31 -07:00
parent b35fddefc0
commit d7dd53c2da

View File

@ -110,7 +110,14 @@ define(function () {
for (j = 0; j < resultsLength; j++) {
id = ids[j];
output.push(objects[id]);
// Include any item except folders
// TODO: Should have a policy for this
if (objects[id].getModel) {
if (objects[id].getModel().type !== "folder") {
output.push(objects[id]);
}
}
}
console.log('final output', output);