Remove styling info.

This commit is contained in:
2026-02-04 03:28:35 +01:00
parent cb7e7210de
commit e695b1bbb1
+4
View File
@@ -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<Article>(this.config.public.url + '/article/' + article.id, {
method: 'POST',
body: JSON.stringify(article),