Skip to content

Commit

Permalink
Fix dataDownloadDisplay erroring on page refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
hvangeffen authored and wkramer committed Jun 24, 2024
1 parent fdd19d7 commit c109d14
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const SpatialTimeSeriesDisplay = () =>
const TimeSeriesDisplayView = () => import('../views/TimeSeriesDisplayView.vue')
const TopologyDisplayView = () => import('../views/TopologyDisplayView.vue')
const DataDownloadDisplayView = () =>
import('../components/download/DataDownloadDisplayComponent.vue')
import('../views/DataDownloadDisplayView.vue')
const TimeSeriesDisplay = () =>
import('../components/timeseries/TimeSeriesDisplay.vue')
const HtmlDisplay = () => import('../views/HtmlDisplayView.vue')
Expand Down
15 changes: 15 additions & 0 deletions src/views/DataDownloadDisplayView.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template>
<DataDownloadDisplayComponent v-if="topologyNode" :nodeId :topologyNode />
</template>

<script setup lang="ts">
import DataDownloadDisplayComponent from '@/components/download/DataDownloadDisplayComponent.vue'
import { TopologyNode } from '@deltares/fews-pi-requests'
interface Props {
nodeId?: string | string[]
topologyNode?: TopologyNode
}
defineProps<Props>()
</script>

0 comments on commit c109d14

Please sign in to comment.