Skip to content

Commit

Permalink
only add title to patch if system attribute and set
Browse files Browse the repository at this point in the history
Signed-off-by: Vinzenz Rosenkranz <[email protected]>
  • Loading branch information
v1r0x committed Dec 18, 2024
1 parent 2878385 commit d6f9c71
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions resources/js/components/modals/attribute/Edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -697,7 +696,7 @@
removeItem,
// STATE
state,
}
};
},
}
};
</script>

0 comments on commit d6f9c71

Please sign in to comment.