mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
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:
11
ui/app/serializers/task-group-scale.js
Normal file
11
ui/app/serializers/task-group-scale.js
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user