Skip to content

Commit

Permalink
chore(client/ts): port services/attribute_renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Dec 19, 2024
1 parent 5d4e7a1 commit 5d5a681
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit 5d5a681

Please sign in to comment.