Skip to content

Commit 4ae8ff8

Browse files
committed
fix "the viewer doesn't support this type of data" message behind the logs. #345
1 parent 615d453 commit 4ae8ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Viewer.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<template #dynamic="{ tab }">
66
<LogViewer v-if="logViewerIcons.includes(tab.icon)" :data="tab.data" @mounted="onMounted" @options="onOptionsChanged" />
77
<component v-else-if="tab.data.component" :is="tab.data.component" v-on="tab.data.events" v-bind="tab.data.props" @mounted="onMounted" @options="onOptionsChanged" /> <!-- for file formats -->
8-
<MetadataViewer v-if="tab.icon === 'fa-info'" :data="tab.data" @mounted="onMounted" @options="onOptionsChanged" /> <!-- for STAC metadata -->
8+
<MetadataViewer v-else-if="tab.icon === 'fa-info'" :data="tab.data" @mounted="onMounted" @options="onOptionsChanged" /> <!-- for STAC metadata -->
99
<MapViewer v-else-if="tab.icon === 'fa-map'" :data="tab.data" :removableLayers="isCollectionPreview(tab.data)" @mounted="onMounted" @options="onOptionsChanged" /> <!-- for services -->
1010
<div class="unsupported" v-else>
1111
Sorry, the viewer doesn't support showing this type of data.

0 commit comments

Comments
 (0)