feat: Enhance CardView and DatasetManagement with loading state and pagination updates

This commit is contained in:
chenghh-9609
2025-10-23 16:56:36 +08:00
parent aba7a3e1fb
commit 4e53cc813b
6 changed files with 22 additions and 54 deletions

View File

@@ -29,7 +29,7 @@ export default function CreateTaskStepOne({
const [datasets, setDatasets] = useState<Dataset[]>([]);
const fetchDatasets = async () => {
const { data } = await queryDatasetsUsingGet({ page: 0, size: 1000 });
const { data } = await queryDatasetsUsingGet({ page: 1, size: 1000 });
setDatasets(data.content.map(mapDataset) || []);
};