Merge pull request #8594 from hashicorp/b-ui/task-group-scale-guard

UI: Add guard against null scale events collection
This commit is contained in:
Michael Lange
2020-08-11 15:33:16 -07:00
committed by GitHub

View File

@@ -0,0 +1,11 @@
import ApplicationSerializer from './application';
export default class TaskGroupScaleSerializer extends ApplicationSerializer {
normalize(typeHash, hash) {
if (!hash.Events) {
hash.Events = [];
}
return super.normalize(typeHash, hash);
}
}