forked from trent_larson/crowd-funder-for-time-pwa
fix problem when going directly to people-map where the search results disappear
This commit is contained in:
@@ -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
4
package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "timesafari",
|
||||
"version": "0.4.4-beta",
|
||||
"version": "0.4.4",
|
||||
"description": "TimeSafari Desktop Application",
|
||||
"author": {
|
||||
"name": "TimeSafari Team"
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user