hide 000-000 values

This commit is contained in:
Hayden 2022-11-13 13:59:05 -09:00
parent a62eff4193
commit c763178bb4
No known key found for this signature in database
GPG key ID: 17CF79474E257545

View file

@ -70,6 +70,19 @@
); );
}); });
const assetID = computed<Details>(() => {
if (item.value?.assetId === "000-000") {
return [];
}
return [
{
name: "Asset ID",
text: item.value?.assetId,
},
];
});
const itemDetails = computed<Details>(() => { const itemDetails = computed<Details>(() => {
return [ return [
{ {
@ -100,10 +113,7 @@
name: "Notes", name: "Notes",
text: item.value?.notes, text: item.value?.notes,
}, },
{ ...assetID.value,
name: "Asset ID",
text: item.value?.assetId,
},
...item.value.fields.map(field => { ...item.value.fields.map(field => {
/** /**
* Support Special URL Syntax * Support Special URL Syntax