Skip to content

Commit

Permalink
fix: don't use lodash _has
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefilter committed Dec 19, 2024
1 parent 3c6c8bb commit 82dbfab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/DLViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import axios from "axios";
import { defineAsyncComponent } from "vue";
import _has from "lodash/has"
import _get from "lodash/get"
export default {
Expand Down Expand Up @@ -52,12 +51,11 @@ export default {
firstItemTypeFromChoice() {
return this.isChoice && this.iiif_manifest.items[0].items[0].items[0].body.items[0].type
},
hasIiifService() {
getIiifService() {
const iiifServicePath = this.isV3Manifest ?
"iiif_manifest.items[0].items[0].items[0].body.service" :
"iiif_manifest.sequences[0].canvases[0].images[0].resource.service"
console.log(_has(this, iiifServicePath), _get(this, iiifServicePath))
return _has(this, iiifServicePath)
return _get(this, iiifServicePath)
},
isChoice() {
return (this.firstItemType == "Choice")
Expand Down

0 comments on commit 82dbfab

Please sign in to comment.