From f14c2427f7e34c2c5c2b6f23e81c8c66b5e9cab1 Mon Sep 17 00:00:00 2001 From: Darren Yu Date: Thu, 4 Sep 2025 10:20:43 +0800 Subject: [PATCH] fix(filemanager): check minimum page size before sync view setting --- src/redux/thunks/filemanager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redux/thunks/filemanager.ts b/src/redux/thunks/filemanager.ts index 64247e0..b5f3914 100644 --- a/src/redux/thunks/filemanager.ts +++ b/src/redux/thunks/filemanager.ts @@ -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,