Skip to content

Commit

Permalink
Avoid warning when the concept box is removed from dom
Browse files Browse the repository at this point in the history
  • Loading branch information
danmichaelo committed May 30, 2019
1 parent 160b6e0 commit 3434dd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/authority/wikidata.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function wikidataController(wikidataService, langService) {
};

this.$onChanges = () => {
if (!this.subject) return;
if (this.mapping) {
let item = this.mapping.to.uri.split('/').pop();
wikidataService.fromEntityId(item, langService.language).then(data => {
Expand Down

0 comments on commit 3434dd1

Please sign in to comment.