Skip to content

Commit

Permalink
Fix conda-store environment name regression (#46)
Browse files Browse the repository at this point in the history
* Fix conda-store kernel metadata disappering

* Release 0.4.2
  • Loading branch information
krassowski authored Jun 1, 2024
1 parent 1eee5ab commit 5aafb2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jupyterlab-new-launcher",
"version": "0.4.1",
"version": "0.4.2",
"description": "A redesigned JupyterLab launcher",
"keywords": [
"jupyter",
Expand Down
5 changes: 3 additions & 2 deletions src/item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ export class Item implements IItem {
this.label =
(kernel['conda_language'] as string | undefined) ??
groups.environment;
delete kernel['conda_env_name'];
const kernelCopy = { ...kernel };
delete kernelCopy['conda_env_name'];
this.metadata = {
...this.metadata,
kernel: {
Namespace: groups.namespace,
conda_env_name: groups.environment,
...kernel
...kernelCopy
}
};
}
Expand Down

0 comments on commit 5aafb2a

Please sign in to comment.