Skip to content

Commit

Permalink
Disable favorite removal if path is unavailable (#3)
Browse files Browse the repository at this point in the history
* Disable favorite removal if path is unavailable

* Update src/index.ts

Co-authored-by: Frédéric Collonval <fcollonval@users.noreply.github.com>
  • Loading branch information
mlhenderson and fcollonval authored Dec 7, 2021
1 parent 8607a24 commit 993b1d2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ const favorites: JupyterFrontEndPlugin<void> = {
const favorite = args.favorite as IFavorites.Favorite;
const path = favorite.path === '' ? '/' : favorite.path;
await commands.execute('filebrowser:open-path', { path });
favoritesManager.removeFavoriteIfInvalid(favorite);
},
label: (args) => {
const favorite = args.favorite as IFavorites.Favorite;
Expand Down

0 comments on commit 993b1d2

Please sign in to comment.