Skip to content

Commit

Permalink
Merge pull request #2003 from bolt/fix/don't-break-if-slug-is-null
Browse files Browse the repository at this point in the history
Don't break if slug is `null` as opposed to "empty string"
  • Loading branch information
I-Valchev authored Oct 15, 2020
2 parents ea40a2b + 3fcc863 commit ec03584
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/js/app/listing/Components/Table/Row/_Actions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ export default {
},
computed: {
slug() {
if (this.record.fieldValues.slug === null) {
return '';
}
if (typeof this.record.fieldValues.slug === 'string') {
return this.record.fieldValues.slug;
}
Expand Down
3 changes: 3 additions & 0 deletions assets/js/app/listing/Components/Table/Row/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ export default {
},
computed: {
slug() {
if (this.record.fieldValues.slug === null) {
return '';
}
if (typeof this.record.fieldValues.slug === 'string') {
return this.record.fieldValues.slug;
}
Expand Down

0 comments on commit ec03584

Please sign in to comment.