Fix passing empty list to draw_notebook_list()

This commit is contained in:
Thomas Kluyver 2014-11-03 14:41:50 -08:00
parent a4f869aa8b
commit 1f2e4cc6c3

View File

@ -145,7 +145,7 @@ define([
this.contents.list_contents(that.notebook_path, {
success: $.proxy(this.draw_notebook_list, this),
error: function(error) {
that.draw_notebook_list([], "Server error: " + error.message);
that.draw_notebook_list({content: []}, "Server error: " + error.message);
}
});
};