Fix status check

This commit is contained in:
Jeffrey Morgan 2015-03-01 17:31:45 -05:00
parent 6ec1ccb851
commit 187e214dc7
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ var ContainerStore = assign(Object.create(EventEmitter.prototype), {
var data = JSON.parse(str);
console.log(data);
if (data.status === 'Pulling dependent layers' || data.status.indexOf('already being pulled by another client') !== -1) {
if (data.status && (data.status === 'Pulling dependent layers' || data.status.indexOf('already being pulled by another client') !== -1)) {
blockedCallback();
return;
}