We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63092dc commit 153eaf3Copy full SHA for 153eaf3
1 file changed
app/components/Package/TimelineChart.vue
@@ -31,7 +31,7 @@ const props = defineProps<{
31
32
const { settings } = useSettings()
33
const route = useRoute('timeline')
34
-const chart = ref<typeof VueUiXy | null>(null)
+const chart = ref<InstanceType<typeof VueUiXy> | null>(null)
35
const activeVersion = computed(() => route.params.version)
36
37
const packageName = computed(() =>
@@ -86,7 +86,8 @@ const convertedData = computed(() => {
86
87
watch(
88
() => convertedData.value,
89
- () => {
+ async () => {
90
+ await nextTick()
91
chart.value?.resetZoom()
92
},
93
{ flush: 'post' },
0 commit comments