forked from jsnbuchanan/crowd-funder-for-time-pwa
fix claim-view page when the claim argument is not a global ID
This commit is contained in:
@@ -564,8 +564,10 @@ export default class ClaimView extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async loadClaim(claimId: string, identity: IIdentifier) {
|
async loadClaim(claimId: string, identity: IIdentifier) {
|
||||||
const url =
|
const urlPath = libsUtil.isGlobalUri(claimId)
|
||||||
this.apiServer + "/api/claim/byHandle/" + encodeURIComponent(claimId);
|
? "/api/claim/byHandle/"
|
||||||
|
: "/api/claim/";
|
||||||
|
const url = this.apiServer + urlPath + encodeURIComponent(claimId);
|
||||||
const headers = await this.getHeaders(identity);
|
const headers = await this.getHeaders(identity);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user