forked from jsnbuchanan/crowd-funder-for-time-pwa
fix problem when going directly to people-map where the search results disappear
This commit is contained in:
@@ -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