Skip to content

Commit 95313d0

Browse files
authored
fix(docs): correct import alias for chart demos (#1551)
1 parent 7d7cf70 commit 95313d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/v4/components/ChartDisplay.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script lang="ts">
22
import type { registryItemSchema } from 'shadcn-vue/schema'
33
import type { z } from 'zod'
4+
import { fixImport } from '~/lib/registry-utils'
45
import { cn } from '~/lib/utils'
56
67
export type Chart = z.infer<typeof registryItemSchema> & {
@@ -16,7 +17,7 @@ const props = defineProps<{
1617
class?: HTMLAttributes['class']
1718
}>()
1819
19-
const code = (await import(`@/registry/new-york-v4/charts/${props.name}.vue?raw`)).default
20+
const code = fixImport((await import(`@/registry/new-york-v4/charts/${props.name}.vue?raw`)).default)
2021
</script>
2122

2223
<template>

0 commit comments

Comments
 (0)