mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-25 19:52:48 +00:00
fix(filemanager): check minimum page size before sync view setting
This commit is contained in:
parent
e53eb86a32
commit
f14c2427f7
|
|
@ -749,7 +749,7 @@ export function syncViewSettings(
|
|||
(parent?.owned || crUri.fs() == Filesystem.trash || crUri.fs() == Filesystem.shared_with_me);
|
||||
|
||||
const currentView: ExplorerView = {
|
||||
page_size: pageSize(fm),
|
||||
page_size: Math.max(MinPageSize, pageSize(fm)),
|
||||
order: fm.sortBy ?? "created_at",
|
||||
order_direction: fm.sortDirection ?? "asc",
|
||||
view: fm.layout ?? Layouts.grid,
|
||||
|
|
|
|||
Loading…
Reference in New Issue