Skip to content

Commit

Permalink
fix: solve issue with conditional author options (#2tkcfjg)
Browse files Browse the repository at this point in the history
  • Loading branch information
dziudek committed Mar 21, 2023
1 parent 326970c commit 8900961
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/back-end/builddata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"0.41.1","build":16180}
{"version":"0.41.1","build":16189}
8 changes: 6 additions & 2 deletions app/src/components/AuthorForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -707,15 +707,19 @@ export default {
}, 50);
},
displayField (field) {
if (!this.dataSet) {
return false;
}
if (!field.authorTemplates) {
return true;
}
if (field.authorTemplates.indexOf('!') === 0) {
return !(field.authorTemplates.replace('!', '').split(',').indexOf(this.authorData.additionalData.template) > -1);
return !(field.authorTemplates.replace('!', '').split(',').indexOf(this.authorData.template) > -1);
}
return field.authorTemplates.split(',').indexOf(this.authorData.additionalData.template) > -1;
return field.authorTemplates.split(',').indexOf(this.authorData.template) > -1;
},
generateItems (arrayToConvert) {
let options = {};
Expand Down

0 comments on commit 8900961

Please sign in to comment.