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),