Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Jan 8, 2025
1 parent 9163ad1 commit 15d6c0c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions js/jupyterlab-slideshow/src/notebook/presenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,13 @@ export class NotebookPresenter implements IPresenter<NotebookPanel> {
if (fromExtent != null) {
let moveTo = fromExtent;
if (['back', 'forward'].includes(direction)) {
moveTo = this._slideBackup(extents, activeCellIndex, fromExtent)
moveTo = this._slideBackup(extents, activeCellIndex, fromExtent);
}
panel.content.activeCellIndex = moveTo;
} else if (fromExtentAlternate != null) {
let moveTo = fromExtentAlternate;
if (['back', 'forward'].includes(direction)) {
moveTo = this._slideBackup(extents, activeCellIndex, fromExtentAlternate)
moveTo = this._slideBackup(extents, activeCellIndex, fromExtentAlternate);
}
panel.content.activeCellIndex = moveTo;
} else {
Expand Down Expand Up @@ -925,9 +925,9 @@ export class NotebookPresenter implements IPresenter<NotebookPanel> {
* set up.
*/
protected _slideBackup(
extents:NotebookPresenter.TExtentMap,
extents: NotebookPresenter.TExtentMap,
current: number,
target: number
target: number,
) {
// Set parent slide redirection
let parentSlide = extents.get(current);
Expand All @@ -942,8 +942,7 @@ export class NotebookPresenter implements IPresenter<NotebookPanel> {
// or if the current is a slide.
if (parentSlide?.index === current || parentSlide?.index === target) {
parentSlide.redirect = null;
}
else if (parentSlide?.slideType === 'slide') {
} else if (parentSlide?.slideType === 'slide') {
parentSlide.redirect = current;
}

Expand Down

0 comments on commit 15d6c0c

Please sign in to comment.