From 6c413172940aa21cf3485fd4f1ca111f81c61e7a Mon Sep 17 00:00:00 2001 From: Benjamin Webb <40066515+webb-ben@users.noreply.github.com> Date: Tue, 10 Jan 2023 07:45:38 -0700 Subject: [PATCH] Fix link relations (#66) --- src/components/data/DataNavigation.vue | 2 +- src/components/station/StationHistory.vue | 9 +++++---- src/components/station/StationLatest.vue | 5 +++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/data/DataNavigation.vue b/src/components/data/DataNavigation.vue index 5367573..ca38b57 100644 --- a/src/components/data/DataNavigation.vue +++ b/src/components/data/DataNavigation.vue @@ -55,7 +55,7 @@ export default { handler(c) { if (hasLinks(this.station)) { for (const item of c) { - if (this.station.links[0].title === item.id) { + if (this.station.properties.topic === item.id) { this.updateCollection(item); } } diff --git a/src/components/station/StationHistory.vue b/src/components/station/StationHistory.vue index 135b015..934ee8b 100644 --- a/src/components/station/StationHistory.vue +++ b/src/components/station/StationHistory.vue @@ -18,6 +18,7 @@