From a43c68c5012209d344b0b64a0c873ea71f189569 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Fri, 8 Sep 2023 17:58:37 +0200 Subject: [PATCH] docs: try to fix the `ContentRenderer` error when changing props --- docs/components/content/ComponentCard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/components/content/ComponentCard.vue b/docs/components/content/ComponentCard.vue index 22ffab8f..616157b4 100644 --- a/docs/components/content/ComponentCard.vue +++ b/docs/components/content/ComponentCard.vue @@ -205,7 +205,7 @@ function renderObject (obj: any) { return obj } -const { data: ast } = await useAsyncData(`${name}-ast-${JSON.stringify(props)}`, () => transformContent('content:_markdown.md', code.value, { +const { data: ast } = await useAsyncData(`${name}-ast-${JSON.stringify(componentProps)}`, () => transformContent('content:_markdown.md', code.value, { highlight: { theme: { light: 'material-theme-lighter',