summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuelockwood <deathbear@apache.org>2013-12-23 14:57:38 -0500
committersuelockwood <deathbear@apache.org>2013-12-23 14:57:38 -0500
commit2aaa229c04a7e23d555c986a9aacfa948bc16923 (patch)
tree562d774ced8f1be099824f51f0c235ac4d37b13d
parent96e2a065ae4fa83fbfc772eb3e339a35ba43fb6b (diff)
downloadcouchdb-2aaa229c04a7e23d555c986a9aacfa948bc16923.tar.gz
sometimes data_size isn't always there. ok.
-rw-r--r--src/fauxton/app/modules/databases/resources.js6
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;
+ }
}
});