diff --git a/src/components/dac_dataset_table/DACDatasetApprovalStatus.jsx b/src/components/dac_dataset_table/DACDatasetApprovalStatus.jsx index f509d62db..7cdd88c04 100644 --- a/src/components/dac_dataset_table/DACDatasetApprovalStatus.jsx +++ b/src/components/dac_dataset_table/DACDatasetApprovalStatus.jsx @@ -22,10 +22,10 @@ export default function DACDatasetApprovalStatus(props) { setOpen(false); }; - const handleAction = ({dataSetId, name}) => { + const handleAction = ({datasetId, name}) => { setOpen(false); try { - DataSet.deleteDataset(dataSetId).then(() => { + DataSet.deleteDataset(datasetId).then(() => { Notifications.showSuccess({ text: `Deleted dataset '${name}' successfully.`, }); @@ -37,7 +37,7 @@ export default function DACDatasetApprovalStatus(props) { }; const updateApprovalStatus = async (approvalState) => { - const updatedDataset = await DAC.updateApprovalStatus(dataset.dacId, dataset.dataSetId, approvalState); + const updatedDataset = await DAC.updateApprovalStatus(dataset.dacId, dataset.datasetId, approvalState); setDataset(updatedDataset); }; @@ -46,7 +46,7 @@ export default function DACDatasetApprovalStatus(props) { {dataset.study?.studyId && @@ -55,7 +55,7 @@ export default function DACDatasetApprovalStatus(props) { <>