From c1fdc5836b16829cb3c2e1be575bea53faf8c65e Mon Sep 17 00:00:00 2001 From: Michael Klein Date: Tue, 11 Oct 2022 15:02:02 +0200 Subject: [PATCH] default to an empty array peering services --- ui/packages/consul-ui/app/models/peer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/packages/consul-ui/app/models/peer.js b/ui/packages/consul-ui/app/models/peer.js index c0e7cba28..1923e31aa 100644 --- a/ui/packages/consul-ui/app/models/peer.js +++ b/ui/packages/consul-ui/app/models/peer.js @@ -1,4 +1,5 @@ import Model, { attr } from '@ember-data/model'; +import { nullValue } from 'consul-ui/decorators/replace'; export const schema = { State: { @@ -16,8 +17,8 @@ export default class Peer extends Model { @attr('string') Name; @attr('string') State; @attr('string') ID; - @attr() ImportedServices; - @attr() ExportedServices; + @nullValue([]) @attr() ImportedServices; + @nullValue([]) @attr() ExportedServices; @attr('date') LastHeartbeat; @attr('date') LastReceive; @attr('date') LastSend;