From 6cc4a931bd20f24e9de34acfa507ad21db595a63 Mon Sep 17 00:00:00 2001 From: Darren Yu Date: Fri, 5 Sep 2025 11:42:00 +0800 Subject: [PATCH] fix(filemanager): check minimum page size before sync view setting (#311) --- 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,