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/1960-paginate-all_dbs Commit: 2aaa229c04a7e23d555c986a9aacfa948bc16923 Parents: 96e2a06 Author: suelockwood <[email protected]> Authored: Mon Dec 23 14:57:38 2013 -0500 Committer: suelockwood <[email protected]> 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; + } } });
