Skip to content

Commit

Permalink
Fix session name display in WSKernelPicker
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitakit authored and lgeiger committed Mar 3, 2018
1 parent 8a333ed commit fb02a36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ws-kernel-picker.js
Expand Up @@ -282,7 +282,9 @@ export default class WSKernelPicker {
});
const items = sessionModels.map(model => {
let name;
if (model.notebook && model.notebook.path) {
if (model.path) {
name = tildify(model.path);
} else if (model.notebook && model.notebook.path) {
name = tildify(model.notebook.path);
} else {
name = `Session ${model.id}`;
Expand Down

0 comments on commit fb02a36

Please sign in to comment.