fix load more not working

This commit is contained in:
Bobby Wang
2022-12-29 22:03:12 +09:30
parent 295974145a
commit 4e96c5b710

View File

@@ -489,15 +489,18 @@ export default function CloudLogsModal({ onClose }: ITableModalProps) {
marginRight: "auto",
display: "flex",
}}
onClick={() =>
onClick={() => {
setCloudLogFilters((c) => ({
...c,
timeRange: {
...c.timeRange,
value: (c.timeRange as any).value * 2,
},
}))
}
}));
setTimeout(() => {
mutate();
}, 0);
}}
>
Load more (last {cloudLogFilters.timeRange.value * 2}{" "}
{cloudLogFilters.timeRange.type})