fix: backlinks, untyped links don't include OFs

feat/type-attributes
Tomáš Mládek 2023-07-30 18:03:28 +02:00
parent 1c62a2f92c
commit 28df11e41c
1 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@
: filteredUntypedAttributes;
$: filteredUntypedLinks = untypedLinks.filter(
(entry) => ![ATTR_IN].includes(entry.attribute)
(entry) => ![ATTR_IN, ATTR_OF].includes(entry.attribute)
);
$: currentUntypedLinks = editable ? untypedLinks : filteredUntypedLinks;
@ -181,7 +181,7 @@
(editable
? $entity?.backlinks
: $entity?.backlinks.filter(
(entry) => ![ATTR_IN].includes(entry.attribute)
(entry) => ![ATTR_IN, ATTR_OF].includes(entry.attribute)
)) || [];
$: tagged = $entity?.attr[`~${ATTR_IN}`] || [];