mirror of https://github.com/docker/docs.git
Fixed deleting bug.
This commit is contained in:
parent
903c90e997
commit
8bfa378a38
|
@ -17,7 +17,6 @@ var ContainerHomeFolder = React.createClass({
|
||||||
},
|
},
|
||||||
render: function () {
|
render: function () {
|
||||||
var folders;
|
var folders;
|
||||||
console.log(_.keys(this.props.container.Volumes));
|
|
||||||
if (this.props.container) {
|
if (this.props.container) {
|
||||||
var self = this;
|
var self = this;
|
||||||
folders = _.map(self.props.container.Volumes, function (val, key) {
|
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 (
|
return (
|
||||||
<div className="folders wrapper">
|
<div className="folders wrapper">
|
||||||
<h4>Edit Files</h4>
|
<h4>Edit Files</h4>
|
||||||
|
|
Loading…
Reference in New Issue