Browse Source

fix claim-view page when the claim argument is not a global ID

kb/add-usage-guide
Trent Larson 7 months ago
parent
commit
ca70b19831
  1. 6
      src/views/ClaimView.vue

6
src/views/ClaimView.vue

@ -564,8 +564,10 @@ export default class ClaimView extends Vue {
}
async loadClaim(claimId: string, identity: IIdentifier) {
const url =
this.apiServer + "/api/claim/byHandle/" + encodeURIComponent(claimId);
const urlPath = libsUtil.isGlobalUri(claimId)
? "/api/claim/byHandle/"
: "/api/claim/";
const url = this.apiServer + urlPath + encodeURIComponent(claimId);
const headers = await this.getHeaders(identity);
try {

Loading…
Cancel
Save