Closes #212: ui issue with parent tags

This commit is contained in:
Benjamin Gamard 2018-03-18 11:59:33 +01:00
parent ce115eadbb
commit 996585d7ac

View File

@ -27,11 +27,10 @@ angular.module('docs').controller('Tag', function($scope, Restangular) {
/**
* Find children tags.
* @param parent
*/
$scope.getChildrenTags = function(parent) {
return _.filter($scope.tags, function(tag) {
return tag.parent === parent;
return tag.parent === parent || !tag.parent && !parent;
});
};
});