Skip to content

Commit

Permalink
Merge branch 'hotfix/1.17.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
oBlissing committed Jun 10, 2020
2 parents 9c723cf + 3260a8b commit 6d3f61f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion viewer/vue-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-client",
"version": "1.17.0",
"version": "1.17.2",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
2 changes: 1 addition & 1 deletion viewer/vue-client/src/utils/record.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export function getDigitalReproductionObject(original, resources) {
}
// Copying instanceOf explicitly cause of how #work works
if (original.mainEntity.hasOwnProperty('instanceOf')) {
if (original.mainEntity.instanceOf['@id'].indexOf('#work') > -1) {
if (original.mainEntity.instanceOf.hasOwnProperty('@id') && original.mainEntity.instanceOf['@id'].indexOf('#work') > -1) {
// Work was local
digitalReproObject.work = Object.assign({}, original.work);
digitalReproObject.work['@id'] = 'https://id.kb.se/TEMPID#work';
Expand Down

0 comments on commit 6d3f61f

Please sign in to comment.