default to an empty array peering services

This commit is contained in:
Michael Klein 2022-10-11 15:02:02 +02:00 committed by Michael Klein
parent 73deb13bd8
commit c1fdc5836b
1 changed files with 3 additions and 2 deletions

View File

@ -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;