Skip to content

Commit

Permalink
Prettier Code for passing Test Lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilip-Jain authored Oct 14, 2023
1 parent 1fd2872 commit 657313c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/notebook-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,12 +510,14 @@ const editNotebookMetadata: JupyterFrontEndPlugin<void> = {
// Check if Show Notebook Tools (Right Sidebar) is open (expanded)
if (!commands.isToggled(command, args)) {
await commands.execute(command, args).then((_) => {

// For expanding the 'Advanced Tools' section (default: collapsed)
if (notebookTools) {
const tools = (notebookTools?.layout as any).widgets;
tools.forEach((tool: any) => {
if ( tool.widget.title.label === 'Advanced Tools' && tool.collapsed ){
if (
tool.widget.title.label === trans.__('Advanced Tools') &&
tool.collapsed
) {

Check failure on line 520 in packages/notebook-extension/src/index.ts

View workflow job for this annotation

GitHub Actions / Test Lint

Delete `··`
tool.toggle();
}
});
Expand All @@ -526,7 +528,7 @@ const editNotebookMetadata: JupyterFrontEndPlugin<void> = {
});

// Add `Edit Notebook Metadata` option to Edit menu
menu.editMenu.addItem({ type: 'command', command: id, rank: 40 })
menu.editMenu.addItem({ type: 'command', command: id, rank: 40 });
},
};

Expand Down

0 comments on commit 657313c

Please sign in to comment.