filter empty tags

This commit is contained in:
Jake McDermott
2018-05-04 12:24:01 -04:00
parent 5ada6f6db2
commit 3d752997ee

View File

@@ -384,7 +384,7 @@ function getJobTagDetails () {
const label = 'Job Tags';
const more = false;
const value = jobTags.map($filter('sanitize'));
const value = jobTags.filter(tag => tag !== '').map($filter('sanitize'));
return { label, more, value };
}
@@ -406,8 +406,7 @@ function getSkipTagDetails () {
const label = 'Skip Tags';
const more = false;
const value = skipTags.map($filter('sanitize'));
const value = skipTags.filter(tag => tag !== '').map($filter('sanitize'));
return { label, more, value };
}