diff --git a/web/src/api/genomics.js b/web/src/api/genomics.js index 384dca1df..6d975bfef 100644 --- a/web/src/api/genomics.js +++ b/web/src/api/genomics.js @@ -1929,10 +1929,12 @@ export const getBasicLocationReportData = (apiurl, location) => { const curatedLineages = filtered.map((d) => { let reportQuery = d.reportQuery; - reportQuery.loc = reportQuery.loc - ? uniq(reportQuery.loc.push(location)) - : [location]; - reportQuery.selected = location; + if (location) { + reportQuery.loc = reportQuery.loc + ? uniq(reportQuery.loc.push(location)) + : [location]; + reportQuery.selected = location; + } return { label: d.label, diff --git a/web/src/components/CustomLocationForm.vue b/web/src/components/CustomLocationForm.vue index 38b21fc49..91283ffda 100644 --- a/web/src/components/CustomLocationForm.vue +++ b/web/src/components/CustomLocationForm.vue @@ -84,7 +84,6 @@