зеркало из https://github.com/docker/kitematic.git
Fix error when fetching containers upon daemon events
Signed-off-by: Jeffrey Morgan <jmorganca@gmail.com>
This commit is contained in:
Родитель
f8746f4d66
Коммит
3fc43ec829
|
@ -100,14 +100,20 @@ class ContainerStore {
|
||||||
}
|
}
|
||||||
|
|
||||||
updated ({container}) {
|
updated ({container}) {
|
||||||
|
if (!container || !container.Name) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let containers = this.containers;
|
let containers = this.containers;
|
||||||
if (containers[container.Name] && containers[container.Name].State.Updating) {
|
if (containers[container.Name] && containers[container.Name].State.Updating) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
container.Logs = containers[container.Name].Logs;
|
if (containers[container.Name] && containers[container.Name].Logs) {
|
||||||
containers[container.Name] = container;
|
container.Logs = containers[container.Name].Logs;
|
||||||
|
}
|
||||||
|
|
||||||
|
containers[container.Name] = container;
|
||||||
this.setState({containers});
|
this.setState({containers});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче