From b214a8229748e0ea84bd2fdade00cbc0579df77b Mon Sep 17 00:00:00 2001 From: Tarek Hamaoui Date: Mon, 23 Dec 2024 22:06:54 +0100 Subject: [PATCH] fix: add snippet parameter for article rendering - Update `useNormRenderHtml` call to include the `snippet: true` parameter. - this bypasses passive modification logic and prevents an exception being thrown RISDEV-4916 --- .../articles/editor/AmendingLawArticleEditor.view.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/amending-law/articles/editor/AmendingLawArticleEditor.view.vue b/frontend/src/views/amending-law/articles/editor/AmendingLawArticleEditor.view.vue index fd6fae5a7..0e63fad14 100644 --- a/frontend/src/views/amending-law/articles/editor/AmendingLawArticleEditor.view.vue +++ b/frontend/src/views/amending-law/articles/editor/AmendingLawArticleEditor.view.vue @@ -84,7 +84,9 @@ const { data: articleHtml, isFetching: isFetchingArticleHtml, error: loadArticleHtmlError, -} = useNormRenderHtml(articleXml) +} = useNormRenderHtml(articleXml, { + snippet: true, +}) const amendingLawActiveTab = ref("text") watch(xml, (xml) => {