diff options
author | suelockwood <deathbear@apache.org> | 2013-12-23 14:57:38 -0500 |
---|---|---|
committer | suelockwood <deathbear@apache.org> | 2013-12-23 14:57:38 -0500 |
commit | 2aaa229c04a7e23d555c986a9aacfa948bc16923 (patch) | |
tree | 562d774ced8f1be099824f51f0c235ac4d37b13d | |
parent | 96e2a065ae4fa83fbfc772eb3e339a35ba43fb6b (diff) | |
download | couchdb-2aaa229c04a7e23d555c986a9aacfa948bc16923.tar.gz |
sometimes data_size isn't always there. ok.
-rw-r--r-- | src/fauxton/app/modules/databases/resources.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fauxton/app/modules/databases/resources.js b/src/fauxton/app/modules/databases/resources.js index a716ea111..f3bde80bc 100644 --- a/src/fauxton/app/modules/databases/resources.js +++ b/src/fauxton/app/modules/databases/resources.js @@ -156,7 +156,11 @@ function(app, FauxtonAPI, Documents) { }, dataSize: function () { - return this.get("other").data_size; + if (this.get("other")){ + return this.get("other").data_size; + }else{ + return 0; + } } }); |