From e695b1bbb1e13c2f757997a440dc1d93af4206a5 Mon Sep 17 00:00:00 2001 From: Matthias Lodner Date: Wed, 4 Feb 2026 03:28:35 +0100 Subject: [PATCH] Remove styling info. --- frontend/app/store/labelEditorStore.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/app/store/labelEditorStore.ts b/frontend/app/store/labelEditorStore.ts index e0061a8..32decee 100644 --- a/frontend/app/store/labelEditorStore.ts +++ b/frontend/app/store/labelEditorStore.ts @@ -274,6 +274,10 @@ export const useLabelEditorStore = defineStore('label_editor_store', { async updateArticle(article: Article) { if (this.article != null) { try { + if (article.ingredients != null) { + article.ingredients = article.ingredients.replace(/style="[^"]*"/g, ''); + } + let updatedArticle = await $fetch
(this.config.public.url + '/article/' + article.id, { method: 'POST', body: JSON.stringify(article),