github.com/hernad/nomad@v1.6.112/ui/app/serializers/task-group-deployment-summary.js (about) 1 /** 2 * Copyright (c) HashiCorp, Inc. 3 * SPDX-License-Identifier: MPL-2.0 4 */ 5 6 import ApplicationSerializer from './application'; 7 import classic from 'ember-classic-decorator'; 8 9 @classic 10 export default class TaskGroupDeploymentSummary extends ApplicationSerializer { 11 normalize(typeHash, hash) { 12 hash.PlacedCanaryAllocations = hash.PlacedCanaries || []; 13 delete hash.PlacedCanaries; 14 return super.normalize(typeHash, hash); 15 } 16 }