Keep expanded state when anything changes in episodes page

This commit is contained in:
LASER-Yi 2021-03-29 19:05:50 +08:00
parent b1307f6745
commit 3744991f93
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,10 @@ function useOptions<T extends object>(options: TableOptions<T>) {
options.autoResetPage = false;
}
if (options.autoResetExpanded === undefined) {
options.autoResetExpanded = false;
}
if (options.initialState === undefined) {
options.initialState = {};
}