mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 09:55:44 +03:00
Fix a bug where the NodeListStub API response would override existing HostVolumes in the store
This commit is contained in:
@@ -17,8 +17,10 @@ export default ApplicationSerializer.extend({
|
||||
return assign({}, drivers[key], { Name: key });
|
||||
});
|
||||
|
||||
const hostVolumes = hash.HostVolumes || {};
|
||||
hash.HostVolumes = Object.keys(hostVolumes).map(key => hostVolumes[key]);
|
||||
if (hash.HostVolumes) {
|
||||
const hostVolumes = hash.HostVolumes;
|
||||
hash.HostVolumes = Object.keys(hostVolumes).map(key => hostVolumes[key]);
|
||||
}
|
||||
|
||||
return this._super(modelClass, hash);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user