mirror of
https://github.com/directus/directus.git
synced 2026-02-14 14:24:55 -05:00
Don't stage empty type for o2m / m2m / files
This commit is contained in:
@@ -123,6 +123,7 @@ function initLocalStore(
|
||||
|
||||
if (type === 'o2m') {
|
||||
delete state.fieldData.database;
|
||||
delete state.fieldData.type;
|
||||
|
||||
if (!isExisting) {
|
||||
state.fieldData.system.special = 'o2m';
|
||||
@@ -159,6 +160,7 @@ function initLocalStore(
|
||||
|
||||
if (type === 'm2m' || type === 'files') {
|
||||
delete state.fieldData.database;
|
||||
delete state.fieldData.type;
|
||||
|
||||
if (!isExisting) {
|
||||
state.fieldData.system.special = 'm2m';
|
||||
|
||||
Reference in New Issue
Block a user