summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-18 16:36:11 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-18 16:36:11 +0100
commit5aef54c8086ea2d51407ace02ccd9b35cd69cb09 (patch)
treea89232551f0f66d21f2462b47089d061cd36e86c /html
parentee0a4a935a95a9472655f85a04e1323f3d328898 (diff)
downloadbrowser-extension-5aef54c8086ea2d51407ace02ccd9b35cd69cb09.tar.gz
browser-extension-5aef54c8086ea2d51407ace02ccd9b35cd69cb09.zip
make "uuid" an optional property
Diffstat (limited to 'html')
-rw-r--r--html/item_preview.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/html/item_preview.js b/html/item_preview.js
index b67455a..cdc56d9 100644
--- a/html/item_preview.js
+++ b/html/item_preview.js
@@ -81,7 +81,7 @@ function resource_preview(resource, preview_object, link_cb=make_file_link) {
preview_object.identifier.innerText = resource.identifier;
preview_object.long_name.innerText = resource.long_name;
- preview_object.uuid.innerText = resource.uuid;
+ preview_object.uuid.innerText = resource.uuid || "not set";
preview_object.version.innerText =
`${resource.version.join(".")}-${resource.revision}`;
preview_object.description.innerText = resource.description;
@@ -118,7 +118,7 @@ function mapping_preview(mapping, preview_object, link_cb=make_file_link) {
preview_object.identifier.innerText = mapping.identifier;
preview_object.long_name.innerText = mapping.long_name;
- preview_object.uuid.innerText = mapping.uuid;
+ preview_object.uuid.innerText = mapping.uuid || "not set";
preview_object.version.innerText = mapping.version.join(".");
preview_object.description.innerText = mapping.description;
preview_object.source_name.innerText = mapping.source_name;