default to an empty array peering services
This commit is contained in:
parent
73deb13bd8
commit
c1fdc5836b
|
@ -1,4 +1,5 @@
|
||||||
import Model, { attr } from '@ember-data/model';
|
import Model, { attr } from '@ember-data/model';
|
||||||
|
import { nullValue } from 'consul-ui/decorators/replace';
|
||||||
|
|
||||||
export const schema = {
|
export const schema = {
|
||||||
State: {
|
State: {
|
||||||
|
@ -16,8 +17,8 @@ export default class Peer extends Model {
|
||||||
@attr('string') Name;
|
@attr('string') Name;
|
||||||
@attr('string') State;
|
@attr('string') State;
|
||||||
@attr('string') ID;
|
@attr('string') ID;
|
||||||
@attr() ImportedServices;
|
@nullValue([]) @attr() ImportedServices;
|
||||||
@attr() ExportedServices;
|
@nullValue([]) @attr() ExportedServices;
|
||||||
@attr('date') LastHeartbeat;
|
@attr('date') LastHeartbeat;
|
||||||
@attr('date') LastReceive;
|
@attr('date') LastReceive;
|
||||||
@attr('date') LastSend;
|
@attr('date') LastSend;
|
||||||
|
|
Loading…
Reference in New Issue