Skip to content

Commit

Permalink
Clear selected items when items are reloaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewhanson committed May 27, 2021
1 parent d70f103 commit c7baaa7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/ListPanel/doi/DoiListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,14 @@ export default {
? this.item
: this.publicationWithCrossrefStatus;
return !(
item['crossref::status'] === null ||
item['crossref::status'] === 'failed'
);
if (typeof item['crossref::status'] === 'undefined') {
return false;
} else {
return !(
item['crossref::status'] === null ||
item['crossref::status'] === 'failed'
);
}
},
/**
* Has the current item been published.
Expand Down
2 changes: 2 additions & 0 deletions src/components/ListPanel/doi/DoiListPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,9 @@ export default {
a[0].click();
docBody.remove(a);
}
this.get();
this.selected = [];
},
/**
* Callback to fire when the form submission's ajax request has been
Expand Down

0 comments on commit c7baaa7

Please sign in to comment.