Skip to content

Commit 4de3a4c

Browse files
committed
Default to edit if file type is unknown
1 parent c0b678c commit 4de3a4c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

notebook/static/tree/js/notebooklist.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -721,18 +721,10 @@ define([
721721
icon = 'running_' + icon;
722722
}
723723
var uri_prefix = NotebookList.uri_prefixes[model.type];
724-
if (model.type === 'file' && !this._is_editable(model))
725-
{
726-
uri_prefix = 'files';
727-
}
728724
if (model.type === 'file' && this._is_viewable(model))
729725
{
730726
uri_prefix = 'view';
731727
}
732-
if (model.type === 'file' && this._is_editable(model))
733-
{
734-
uri_prefix = 'edit';
735-
}
736728
if (model.type === 'file' && this._is_notebook(model))
737729
{
738730
uri_prefix = 'notebooks';

0 commit comments

Comments
 (0)