diff --git a/tools/upend_js/api.ts b/tools/upend_js/api.ts index 58bf9a6..a8760cc 100644 --- a/tools/upend_js/api.ts +++ b/tools/upend_js/api.ts @@ -207,11 +207,7 @@ export class UpEndApi { } public async getAddress( - input: - | { attribute: string } - | { url: string } - | { urlContent: string } - | ADDRESS_TYPE + input: { urlContent: string } | ADDRESS_TYPE ): Promise { let response: Response; if (typeof input === "string") { diff --git a/webui/src/components/display/UpLink.svelte b/webui/src/components/display/UpLink.svelte index 329f24d..8a47002 100644 --- a/webui/src/components/display/UpLink.svelte +++ b/webui/src/components/display/UpLink.svelte @@ -23,9 +23,11 @@ if (to.entity) { targetHref = to.entity; } else if (to.attribute) { - api.getAddress({ attribute: to.attribute }).then((address) => { - targetHref = address; - }); + api + .componentsToAddress({ t: "Attribute", c: to.attribute }) + .then((address) => { + targetHref = address; + }); } else if (to.surfaceAttribute) { targetHref = `surface:${to.surfaceAttribute}`; }