chore(client/ts): port services/attribute_renderer

This commit is contained in:
Elian Doran 2024-12-19 19:23:07 +02:00
parent 5d4e7a16fd
commit 5d5a68170a
No known key found for this signature in database

View File

@ -20,7 +20,11 @@ async function renderAttribute(attribute, renderIsInheritable) {
// when the relation has just been created, then it might not have a value
if (attribute.value) {
$attr.append(document.createTextNode(`~${attribute.name}${isInheritable}=`));
$attr.append(await createLink(attribute.value));
const link = await createLink(attribute.value);
if (link) {
$attr.append(link);
}
}
} else {
ws.logError(`Unknown attr type: ${attribute.type}`);