mirror of
https://github.com/directus/directus.git
synced 2026-01-28 19:48:09 -05:00
Fix saving error with custom permissions in O2M fields (#13998)
* fix 13765: saving error with rbac role on relation collections * simplify the implementation
This commit is contained in:
@@ -210,7 +210,7 @@ function editItem(item: DisplayItem) {
|
||||
const pkField = relationInfo.value.relatedPrimaryKeyField.field;
|
||||
|
||||
newItem = false;
|
||||
editsAtStart.value = item;
|
||||
editsAtStart.value = { [pkField]: item[pkField] };
|
||||
|
||||
if (item?.$type === 'created' && !isItemSelected(item)) {
|
||||
currentlyEditing.value = '+';
|
||||
|
||||
Reference in New Issue
Block a user