Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to use attribute of location field as default column? #4962

Open
emaddoma opened this issue Aug 28, 2019 · 0 comments
Open

Not able to use attribute of location field as default column? #4962

emaddoma opened this issue Aug 28, 2019 · 0 comments

Comments

@emaddoma
Copy link

Expected behavior

Display attribute of field as defautlt column. Keystone v3 supported this.

Actual/Current behavior

This no longer works in Keystone 4.

Steps to reproduce the actual/current behavior

`'use strict';

const keystone = require('keystone');

const Types = keystone.Field.Types;

/**

  • Event Location Model
  • ====================
    */

const EventLocation = new keystone.List('EventLocation', {
map: { name: 'location.name' },
track: true

});

EventLocation.add({
location: {
type: Types.Location,
enableMapsAPI: true,
initial: true,
collapse: false
}
});

EventLocation.defaultColumns = 'location.name, location.suburb, location.state';
EventLocation.register();
`

Environment

Keystone 4.2.1
Node 8
Admin UI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant