keystone-classic icon indicating copy to clipboard operation
keystone-classic copied to clipboard

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

Open emaddoma opened this issue 6 years ago • 0 comments

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

emaddoma avatar Aug 28 '19 18:08 emaddoma