Skip to content

Commit 2e8ab06

Browse files
authored
Merge pull request microsoft#186562 from microsoft/aamunger/notebookToolbar
prevent exception during notebook toolbar layout call
2 parents be62428 + c8cb5f5 commit 2e8ab06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ function actionOverflowHelper(initialPrimaryActions: IActionModel[], initialSeco
645645
}
646646
}
647647

648-
for (let i = (renderActions.length - 1); i !== 0; i--) {
648+
for (let i = (renderActions.length - 1); i > 0; i--) {
649649
const temp = renderActions[i];
650650
if (temp.size === 0) {
651651
continue;

0 commit comments

Comments
 (0)