Skip to content

Commit

Permalink
check for hits before generating color scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
gamcil committed Aug 31, 2023
1 parent 723747f commit 118716d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/ResultMixin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ export default {
return target;
},
setColorScheme() {
if (!this.hits) {
return;
}
var color = colorScale();
for (let result of (__LOCAL__) ? this.currentResult.results : this.hits.results) {
result.color = color(result.db);
Expand Down

0 comments on commit 118716d

Please sign in to comment.