From eabe2b94485cdcbbe5997e1b1b0978dc07f2ca00 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Mon, 17 Feb 2025 20:35:05 -0700 Subject: [PATCH] fix problem when going directly to people-map where the search results disappear --- CHANGELOG.md | 6 ++++++ package-lock.json | 4 ++-- package.json | 2 +- src/views/DiscoverView.vue | 10 ++++++++-- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 131e6d5..dafcf0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [0.4.4] - 2025.02.17 +### Fixed +- On production (due to data?) the search results would disappear after scrolling down. Now we don't show any results when going to the people map with a shortcut. + + ## [0.4.3] - 2025.02.17 ### Added - Discover query parameter searchPeople to go directly to the people map diff --git a/package-lock.json b/package-lock.json index 69ef416..c13103e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "timesafari", - "version": "0.4.4-beta", + "version": "0.4.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "timesafari", - "version": "0.4.4-beta", + "version": "0.4.4", "dependencies": { "@capacitor/android": "^6.2.0", "@capacitor/cli": "^6.2.0", diff --git a/package.json b/package.json index 76fea02..13e4cec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "timesafari", - "version": "0.4.4-beta", + "version": "0.4.4", "description": "TimeSafari Desktop Application", "author": { "name": "TimeSafari Team" diff --git a/src/views/DiscoverView.vue b/src/views/DiscoverView.vue index c5a81ad..41cb4f0 100644 --- a/src/views/DiscoverView.vue +++ b/src/views/DiscoverView.vue @@ -414,7 +414,13 @@ export default class DiscoverView extends Vue { this.isMappedActive = true; this.isAnywhereActive = false; } - await this.searchAll(); + + if (this.isMappedActive) { + // The map will be loaded when it's ready + // and if we try to do it here before the map is ready then we get errors. + } else { + await this.searchSelected(); + } } public resetCounts() { @@ -475,7 +481,7 @@ export default class DiscoverView extends Vue { } else { throw JSON.stringify(results); } - } else { + } else { // people search must be active this.projects = []; const profiles: UserProfile[] = results.data; if (profiles) {