Skip to content

Commit f509b3f

Browse files
SteelWagstafffdalcinrichard015ar
authored
v2.5.1 (#430)
* Update README.md * fix: check if has editors before trying to render them * Update version Co-authored-by: Felipe Dalcin <felipe@pressbooks.com> Co-authored-by: Ricardo Aragon <ricardo@pressbooks.com>
1 parent 4c87555 commit f509b3f

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pressbooks-directory",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"engines": {
55
"node": ">=14.0.0 <15.0.0",
66
"npm": ">=6.0.0 <7.0.0"

src/components/books/BookDetails.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
data-cy="book-authors"
1212
/>
1313
<meta-info
14-
v-if="item.hasEditor"
14+
v-if="hasEditor"
1515
title="Editor(s): "
1616
:text="editors"
1717
data-cy="book-editors"
@@ -105,6 +105,9 @@ export default {
105105
hasSubjects() {
106106
return this.item.about && this.item.about.length > 0;
107107
},
108+
hasEditor(){
109+
return this.item.editor && this.item.editor.length > 0;
110+
},
108111
authors() {
109112
return this.item.author.join(', ');
110113
},

0 commit comments

Comments
 (0)