Commit 855df0ce authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'fl-releases-fix-author' into 'master'

Fixes if case to render author info in releases

See merge request gitlab-org/gitlab-ce!23989
parents db0b2381 f635fbde
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
return this.release.author || {}; return this.release.author || {};
}, },
hasAuthor() { hasAuthor() {
return _.isEmpty(this.author); return !_.isEmpty(this.author);
}, },
}, },
}; };
......
...@@ -133,4 +133,8 @@ describe('Release block', () => { ...@@ -133,4 +133,8 @@ describe('Release block', () => {
release.assets.links[0].name, release.assets.links[0].name,
); );
}); });
it('renders author avatar', () => {
expect(vm.$el.querySelector('.user-avatar-link')).not.toBeNull();
});
}); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment