mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
Restore pagination on the instance save list (#973)
useTableQueryState returns pagination=false unless a pagination config is passed, and SavesList did not pass one after #930, so the saves table rendered all saves on one page. Fixes #967 Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
00ce7cdca6
commit
7bd408b45e
1 file changed
+1
-1
@@ -206,7 +206,7 @@ export default function SavesList(props: { instance: lib.InstanceDetails }) {
|
||||
let [starting, setStarting] = useState(false);
|
||||
let [uploadingFiles, setUploadingFiles] = useState<File[]>([]);
|
||||
const tableState = useTableQueryState<lib.SaveDetails>({
|
||||
namespace: "save", defaultSortKey: "mtimeMs", defaultSortOrder: "descend",
|
||||
namespace: "save", defaultSortKey: "mtimeMs", defaultSortOrder: "descend", pagination: { defaultPageSize: 10 },
|
||||
});
|
||||
|
||||
let hostOffline = ["unassigned", "unknown"].includes(props.instance.status!);
|
||||
|
||||
Reference in new issue
Block a user