enhancement(collections): use identifier field in collections view (#2058)
This commit is contained in:
parent
518f6fb1c0
commit
49195fdb1a
@ -121,6 +121,9 @@ export const selectIdentifier = collection => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
export const selectInferedField = (collection, fieldName) => {
|
export const selectInferedField = (collection, fieldName) => {
|
||||||
|
if (fieldName === 'title' && collection.get('identifier_field')) {
|
||||||
|
return selectIdentifier(collection);
|
||||||
|
}
|
||||||
const inferableField = INFERABLE_FIELDS[fieldName];
|
const inferableField = INFERABLE_FIELDS[fieldName];
|
||||||
const fields = collection.get('fields');
|
const fields = collection.get('fields');
|
||||||
let field;
|
let field;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user