Skip to content

Commit

Permalink
fixed overlapping of outputs when creating a cell at the top (#14417)
Browse files Browse the repository at this point in the history
Signed-off-by: Jonah Iden <[email protected]>
  • Loading branch information
jonah-iden authored Nov 11, 2024
1 parent bc4acd4 commit c028a03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export async function outputWebviewPreload(ctx: PreloadContext): Promise<void> {
theia.postMessage({ type: 'cellFocusChanged', cellHandle: cellHandle });
});

if (cellIndex && cellIndex < container.children.length) {
if (cellIndex !== undefined && cellIndex < container.children.length) {
container.insertBefore(this.element, container.children[cellIndex]);
} else {
container.appendChild(this.element);
Expand Down

0 comments on commit c028a03

Please sign in to comment.