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 Jun 23, 2023
1 parent 57745b3 commit 9fa8dee
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 9fa8dee

Please sign in to comment.