Skip to content

Commit

Permalink
fix graph rerender on metric change
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreezag committed Sep 19, 2024
1 parent e035dfc commit 17fa56f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/entities/profiler/ui/call-graph/call-graph.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const container = ref<HTMLElement>()
const elements = ref<ElementsDefinition | undefined>()
const toolbar = ref<ProfilerCallGraph['toolbar']>([])
const graphKey = computed(() => `${metric.value}-${threshold.value}-${percent.value}`)
const graphKey = ref('')
const setMetric = (value: string) => {
if (Object.values(GraphTypes).includes(value as GraphTypes)) {
Expand Down Expand Up @@ -61,6 +61,8 @@ watchEffect(async () => {
elements.value = elems
toolbar.value = tools
graphKey.value = `${metric.value}-${threshold.value}-${percent.value}`
})
onMounted(() => {
Expand Down

0 comments on commit 17fa56f

Please sign in to comment.