fix problem when going directly to people-map where the search results disappear

This commit is contained in:
2025-02-17 20:35:05 -07:00
parent dd8f50a984
commit 11a4bbbc8f
4 changed files with 17 additions and 5 deletions

View File

@@ -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

4
package-lock.json generated
View File

@@ -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",

View File

@@ -1,6 +1,6 @@
{
"name": "timesafari",
"version": "0.4.4-beta",
"version": "0.4.4",
"description": "TimeSafari Desktop Application",
"author": {
"name": "TimeSafari Team"

View File

@@ -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) {