Skip to content

Commit

Permalink
fix(document-grid): rename lastSuccessful alias
Browse files Browse the repository at this point in the history
It is conflicting with the documents service.
  • Loading branch information
fkm-adfinis authored and velrest committed Dec 3, 2020
1 parent a4ae21b commit d62ecce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addon/components/document-grid.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</div>
{{/each}}
{{else}}
{{#each this.documents as |document|}}
{{#each this.fetchedDocuments as |document|}}
{{! This wrapper div is needed for the uk-grid spacing between elements }}
<div data-test-document-container>
<LinkTo
Expand Down
4 changes: 2 additions & 2 deletions addon/components/document-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ export default class DocumentGridComponent extends Component {
get selectedDocument() {
if (this.args.selectedDocumentId) {
return (
this.documents &&
this.fetchedDocuments &&
this.store.peekRecord("document", this.args.selectedDocumentId)
);
}
return undefined;
}

@lastValue("fetchDocuments") documents;
@lastValue("fetchDocuments") fetchedDocuments;
@task
*fetchDocuments() {
return yield this.store.query("document", {
Expand Down

0 comments on commit d62ecce

Please sign in to comment.