1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

Fixed deleting bug.

This commit is contained in:
Sean Li
2015-02-16 12:01:02 -08:00
parent 903c90e997
commit 8bfa378a38

View File

@@ -17,7 +17,6 @@ var ContainerHomeFolder = React.createClass({
},
render: function () {
var folders;
console.log(_.keys(this.props.container.Volumes));
if (this.props.container) {
var self = this;
folders = _.map(self.props.container.Volumes, function (val, key) {
@@ -34,7 +33,7 @@ var ContainerHomeFolder = React.createClass({
}
});
}
if (this.props.container && _.keys(this.props.container.Volumes).length > 0 && this.props.container.State.Running) {
if (this.props.container && this.props.container.Volumes && _.keys(this.props.container.Volumes).length > 0 && this.props.container.State.Running) {
return (
<div className="folders wrapper">
<h4>Edit Files</h4>