From d6f9c71215b067d0b2b1e7237dd55574b3b96645 Mon Sep 17 00:00:00 2001 From: Vinzenz Rosenkranz Date: Wed, 18 Dec 2024 15:47:45 +0100 Subject: [PATCH] only add title to patch if system attribute and set Signed-off-by: Vinzenz Rosenkranz --- resources/js/components/modals/attribute/Edit.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/js/components/modals/attribute/Edit.vue b/resources/js/components/modals/attribute/Edit.vue index 936fe321..60a5038b 100644 --- a/resources/js/components/modals/attribute/Edit.vue +++ b/resources/js/components/modals/attribute/Edit.vue @@ -443,8 +443,7 @@ width: state.width, }; } - if(state.attribute.pivot && - (!state.attribute.pivot.metadata || state.separatorTitle != state.attribute.pivot.metadata.title) + if(state.attribute.is_system && state.separatorTitle && (!state.attribute.pivot.metadata?.title || state.separatorTitle != state.attribute.pivot.metadata.title) ) { data.metadata = { title: state.separatorTitle, @@ -697,7 +696,7 @@ removeItem, // STATE state, - } + }; }, - } + }; \ No newline at end of file