You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by de...@apache.org on 2013/12/23 20:58:46 UTC
git commit: updated refs/heads/master to 2aaa229
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 <de...@apache.org>
Authored: Mon Dec 23 14:57:38 2013 -0500
Committer: suelockwood <de...@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;
+ }
}
});