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 (#311)
This commit is contained in:
parent
3f228f3131
commit
6cc4a931bd
|
|
@ -749,7 +749,7 @@ export function syncViewSettings(
|
||||||
(parent?.owned || crUri.fs() == Filesystem.trash || crUri.fs() == Filesystem.shared_with_me);
|
(parent?.owned || crUri.fs() == Filesystem.trash || crUri.fs() == Filesystem.shared_with_me);
|
||||||
|
|
||||||
const currentView: ExplorerView = {
|
const currentView: ExplorerView = {
|
||||||
page_size: pageSize(fm),
|
page_size: Math.max(MinPageSize, pageSize(fm)),
|
||||||
order: fm.sortBy ?? "created_at",
|
order: fm.sortBy ?? "created_at",
|
||||||
order_direction: fm.sortDirection ?? "asc",
|
order_direction: fm.sortDirection ?? "asc",
|
||||||
view: fm.layout ?? Layouts.grid,
|
view: fm.layout ?? Layouts.grid,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue