mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
cluster-state serialization fix
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
1 parent
5b98674d80
commit
3f8fe0fe1b
2 files changed
+6
-3
No files matched your search
+5
-2
@@ -312,7 +312,7 @@ export class Cluster implements ClusterModel {
|
||||
|
||||
// serializable full-featured state of the cluster
|
||||
getState(): ClusterState {
|
||||
return {
|
||||
const state: ClusterState = {
|
||||
...this.toJSON(),
|
||||
apiUrl: this.apiUrl,
|
||||
online: this.online,
|
||||
@@ -324,6 +324,9 @@ export class Cluster implements ClusterModel {
|
||||
isAdmin: this.isAdmin,
|
||||
features: this.features,
|
||||
eventCount: this.eventCount,
|
||||
}
|
||||
};
|
||||
return toJS(state, {
|
||||
recurseEverything: true
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user