Skip to content

Commit

Permalink
Show error msg for ocrd-identifier redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
joschrew committed Apr 25, 2024
1 parent 118ce3f commit fbc1ff5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/ocrd-identifier/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<span class="ml-4" v-if="showErrorMsg">
Ocrd-Identifier: <strong>{{ this.$route.query["id"] }}</strong> not found
Ocrd-Identifier: <strong>{{ id }}</strong> not found
</span>
<router-link class="text-sky-500 hover:text-slate-700 m-4" :to="{ name: 'home' }">
Go back to main page
Expand All @@ -16,8 +16,9 @@
const route = useRoute()
const router = useRouter()
const id = route.query.id
lzaApi.getLatestPidForOcrdidentifier(route.query.id).then(response => {
lzaApi.getLatestPidForOcrdidentifier(id).then(response => {
if (response.data) {
router.push({
name: "search-detail",
Expand Down

0 comments on commit fbc1ff5

Please sign in to comment.