Skip to content

Commit 070ae07

Browse files
committed
Handle absent temporal extents
1 parent 21a92ec commit 070ae07

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/Catalog.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,10 @@ export default {
322322
temporalExtent() {
323323
const { temporal } = this.extent;
324324
325+
if (temporal == null) {
326+
return null;
327+
}
328+
325329
return [
326330
temporal[0]
327331
? new Date(temporal[0]).toLocaleString()

0 commit comments

Comments
 (0)