couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject git commit: updated refs/heads/master to 2aaa229
Date Mon, 23 Dec 2013 19:58:46 GMT
Updated Branches:
  refs/heads/master 96e2a065a -> 2aaa229c0


sometimes data_size isn't always there. ok.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/2aaa229c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/2aaa229c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/2aaa229c

Branch: refs/heads/master
Commit: 2aaa229c04a7e23d555c986a9aacfa948bc16923
Parents: 96e2a06
Author: suelockwood <deathbear@apache.org>
Authored: Mon Dec 23 14:57:38 2013 -0500
Committer: suelockwood <deathbear@apache.org>
Committed: Mon Dec 23 14:57:38 2013 -0500

----------------------------------------------------------------------
 src/fauxton/app/modules/databases/resources.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/2aaa229c/src/fauxton/app/modules/databases/resources.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/databases/resources.js b/src/fauxton/app/modules/databases/resources.js
index a716ea1..f3bde80 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;
+      }  
     }
   });
 


Mime
View raw message