diff --git a/frontend/pages/item/[id]/index.vue b/frontend/pages/item/[id]/index.vue index c92508e..cf67854 100644 --- a/frontend/pages/item/[id]/index.vue +++ b/frontend/pages/item/[id]/index.vue @@ -70,6 +70,19 @@ ); }); + const assetID = computed
(() => { + if (item.value?.assetId === "000-000") { + return []; + } + + return [ + { + name: "Asset ID", + text: item.value?.assetId, + }, + ]; + }); + const itemDetails = computed
(() => { return [ { @@ -100,10 +113,7 @@ name: "Notes", text: item.value?.notes, }, - { - name: "Asset ID", - text: item.value?.assetId, - }, + ...assetID.value, ...item.value.fields.map(field => { /** * Support Special URL Syntax