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

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