diff options
Diffstat (limited to 'html')
-rw-r--r-- | html/item_preview.js | 4 |
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; |