Skip to content

Commit

Permalink
fix list delete error
Browse files Browse the repository at this point in the history
  • Loading branch information
cdmikechen committed Jul 15, 2023
1 parent ec5c8b5 commit 03a7011
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class ExperimentHomeComponent implements OnInit {
}
// Delete redundant rows
if (currentListSize > newListSize) {
this.experimentList = this.experimentList.splice(0, newListSize - currentListSize);
this.experimentList = this.experimentList.slice(0, newListSize);
}

if (!isAutoReload) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class NotebookHomeComponent implements OnInit, OnDestroy {
}
// Delete redundant rows
if (currentListSize > newListSize) {
this.notebookList = this.notebookList.splice(0, newListSize - currentListSize);
this.notebookList = this.notebookList.slice(0, newListSize);
}
}
});
Expand Down

0 comments on commit 03a7011

Please sign in to comment.