show IS attrs in untyped unless the type has attrs
This commit is contained in:
parent
942ccf1c40
commit
8d02371d17
1 changed files with 24 additions and 18 deletions
|
@ -238,9 +238,7 @@ export default defineComponent({
|
||||||
);
|
);
|
||||||
untypedAttributes.length = 0;
|
untypedAttributes.length = 0;
|
||||||
|
|
||||||
attributes.value
|
attributes.value.forEach(([entryAddr, entry]) => {
|
||||||
.filter(([_, entry]) => entry.attribute !== "IS")
|
|
||||||
.forEach(([entryAddr, entry]) => {
|
|
||||||
const entryTypes = Object.entries(allTypes.value).filter(([_, t]) =>
|
const entryTypes = Object.entries(allTypes.value).filter(([_, t]) =>
|
||||||
t.attributes.includes(entry.attribute)
|
t.attributes.includes(entry.attribute)
|
||||||
);
|
);
|
||||||
|
@ -257,9 +255,17 @@ export default defineComponent({
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const filteredUntypedAttributes = computed(() => {
|
||||||
|
return untypedAttributes.filter(
|
||||||
|
([_, entry]) =>
|
||||||
|
entry.attribute !== "IS" ||
|
||||||
|
!Object.keys(typedAttributes).includes(entry.value.c)
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
typedAttributes,
|
typedAttributes,
|
||||||
untypedAttributes,
|
untypedAttributes: filteredUntypedAttributes,
|
||||||
backlinks,
|
backlinks,
|
||||||
error,
|
error,
|
||||||
mutate,
|
mutate,
|
||||||
|
|
Loading…
Reference in a new issue