mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Fix passing empty list to draw_notebook_list()
This commit is contained in:
parent
a4f869aa8b
commit
1f2e4cc6c3
@ -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);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user