Fix: Make sort visible by default on relationships (#9792)

* make sort visible by default

* fix typo preventing create sort field
This commit is contained in:
José Varela
2021-11-24 21:03:14 +00:00
committed by GitHub
parent 6dc551b7db
commit 1f3e0f668b
4 changed files with 6 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ export function applyChanges(updates: StateUpdates, state: State, helperFn: Help
'relations.o2m.field',
'relations.m2o.field',
'relations.m2o.related_collection',
'relations.o2m.meta?.sort_field',
'relations.o2m.meta.sort_field',
].some(hasChanged)
) {
generateCollections(updates, state, helperFn);
@@ -194,7 +194,7 @@ function generateFields(updates: StateUpdates, state: State, { getCurrent }: Hel
type: 'integer',
schema: {},
meta: {
hidden: true,
hidden: false,
},
});
} else {

View File

@@ -285,7 +285,7 @@ function generateFields(updates: StateUpdates, state: State, { getCurrent }: Hel
type: 'integer',
schema: {},
meta: {
hidden: true,
hidden: false,
},
});
} else {

View File

@@ -184,7 +184,7 @@ export function generateSortField(updates: StateUpdates, state: State, { getCurr
type: 'integer',
schema: {},
meta: {
hidden: true,
hidden: false,
},
});
}

View File

@@ -34,7 +34,7 @@ export function applyChanges(updates: StateUpdates, state: State, helperFn: Help
'relations.o2m.field',
'relations.m2o.field',
'relations.m2o.related_collection',
'relations.o2m.meta?.sort_field',
'relations.o2m.meta.sort_field',
].some(hasChanged)
) {
generateCollections(updates, state, helperFn);
@@ -258,7 +258,7 @@ function generateFields(updates: StateUpdates, state: State, { getCurrent }: Hel
type: 'integer',
schema: {},
meta: {
hidden: true,
hidden: false,
},
});
} else {