Don't stage empty type for o2m / m2m / files

This commit is contained in:
rijkvanzanten
2020-08-05 14:02:58 -04:00
parent 950fd64b76
commit 258493e4b3

View File

@@ -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';