Skip to content

Commit

Permalink
Fix issues with profile widget and invalid queries
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Mar 1, 2024
1 parent 9e47810 commit 7a27228
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions etc/query_editor/js/components/query-profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,20 @@ const props = defineProps({
});
const query_profile = computed(() => {
return props.result.query_profile;
if (props.result.query_profile) {
return props.result.query_profile;
} else {
return {
result_count: 0,
entity_count: 0,
eval_time_avg_us: 0,
eval_time_min_us: 0,
eval_time_max_us: 0
};
}
});
const result_count = computed(() => {
console.log(query_profile);
return query_profile.value.result_count;
});
Expand Down

0 comments on commit 7a27228

Please sign in to comment.