Remove styling info.
This commit is contained in:
@@ -274,6 +274,10 @@ export const useLabelEditorStore = defineStore('label_editor_store', {
|
|||||||
async updateArticle(article: Article) {
|
async updateArticle(article: Article) {
|
||||||
if (this.article != null) {
|
if (this.article != null) {
|
||||||
try {
|
try {
|
||||||
|
if (article.ingredients != null) {
|
||||||
|
article.ingredients = article.ingredients.replace(/style="[^"]*"/g, '');
|
||||||
|
}
|
||||||
|
|
||||||
let updatedArticle = await $fetch<Article>(this.config.public.url + '/article/' + article.id, {
|
let updatedArticle = await $fetch<Article>(this.config.public.url + '/article/' + article.id, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify(article),
|
body: JSON.stringify(article),
|
||||||
|
|||||||
Reference in New Issue
Block a user