Skip to content

Commit b1b7e1b

Browse files
committed
fix: animation plugin bug when reset
1 parent d52cb42 commit b1b7e1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vtable-plugins/src/table-carousel-animation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export class TableCarouselAnimationPlugin implements pluginsDefinition.IVTablePl
6969

7070
reset() {
7171
this.playing = false;
72-
this.row = this.table.frozenRowCount;
73-
this.col = this.table.frozenColCount;
72+
this.row = this.table?.frozenRowCount ?? 0;
73+
this.col = this.table?.frozenColCount ?? 0;
7474
}
7575

7676
play() {

0 commit comments

Comments
 (0)