mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
chore(client/ts): port services/attribute_renderer
This commit is contained in:
parent
5d4e7a16fd
commit
5d5a68170a
@ -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}`);
|
Loading…
x
Reference in New Issue
Block a user