Skip to content

Commit

Permalink
pkp/pkp-lib#2072 Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Sep 5, 2019
1 parent 5386732 commit 6240560
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
6 changes: 2 additions & 4 deletions src/components/Container/WorkflowContainerOMP.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
data() {
return {
chaptersGridUrl: '',
isLoadingWorkType: false,
isLoadingWorkType: false
};
},
computed: {
Expand Down Expand Up @@ -44,9 +44,7 @@ export default {
refreshOn: 'form-success'
});
} else {
const chaptersHandler = $.pkp.classes.Handler.getHandler(
$chaptersEl
);
const chaptersHandler = $.pkp.classes.Handler.getHandler($chaptersEl);
chaptersHandler.setSourceUrl(sourceUrl);
chaptersHandler.reload();
}
Expand Down
5 changes: 4 additions & 1 deletion src/components/Form/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,10 @@ export default {
).length
) {
// See note above on converting empty arrays
if (Array.isArray(field.value[localeKey]) && !field.value[localeKey].length) {
if (
Array.isArray(field.value[localeKey]) &&
!field.value[localeKey].length
) {
fieldValues[localeKey] = '';
} else {
fieldValues[localeKey] = field.value[localeKey];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,15 @@ export default {
*/
itemsPlucked() {
return this.items.map(item => {
const currentPublication = item.publications.find(publication => publication.id === item.currentPublicationId);
const currentPublication = item.publications.find(
publication => publication.id === item.currentPublicationId
);
return {
id: item.id,
title: [currentPublication.authorsStringShort, this.localize(currentPublication.fullTitle)].join(
this.__('listSeparator')
),
title: [
currentPublication.authorsStringShort,
this.localize(currentPublication.fullTitle)
].join(this.__('listSeparator')),
urlWorkflow: item.urlWorkflow
};
});
Expand Down

0 comments on commit 6240560

Please sign in to comment.