Skip to content

Commit

Permalink
ItemView: Fix issue with cold loading concept data
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Jul 1, 2024
1 parent f7e19b4 commit 7dab1b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/views/ItemView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import config from "@/config.js"
import * as jskos from "jskos-tools"
import { AutoLink } from "jskos-vue"
import { schemes, registry, loadTop, loadNarrower, loadConcept, loadAncestors, saveConcept } from "@/store.js"
import { schemes, registry, loadTop, loadNarrower, loadConcept, loadAncestors, getConceptByUri } from "@/store.js"
import { computed, ref, watch } from "vue"
import { useRoute, useRouter } from "vue-router"
import { utils } from "jskos-vue"
Expand All @@ -24,7 +24,7 @@ const concept = computed({
if (!uri.value) {
return null
}
return saveConcept({ uri: uri.value }, { returnIfExists: true, returnNullOnError: true })
return getConceptByUri(uri.value)
},
set(value) {
router.push(getRouterUrl({ scheme: scheme.value, concept: value }))
Expand Down

0 comments on commit 7dab1b8

Please sign in to comment.