Skip to content

Commit

Permalink
fix(#110): array check
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas COUTIN committed Jan 11, 2019
1 parent b6829a6 commit fb5879a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sitemap-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class SitemapItem {
videoxml.element('video:family_friendly', video.family_friendly)
}
if (video.tag) {
if (typeof video.tag.length === 'undefined') {
if (!_.isArray(video.tag)) {
videoxml.element('video:tag', video.tag)
} else {
for (const tag of video.tag) {
Expand Down

0 comments on commit fb5879a

Please sign in to comment.