= ({ patient, onEditPati
onEditPatient(patient)}
+ onStudyUpdated={() => onStudyUpdated(patient)}
onStudySelected={handleStudySelected}
/>
diff --git a/src/content/series/SeriesRoot.tsx b/src/content/series/SeriesRoot.tsx
index 2fde2340..ca16e370 100644
--- a/src/content/series/SeriesRoot.tsx
+++ b/src/content/series/SeriesRoot.tsx
@@ -41,8 +41,8 @@ const SeriesRoot: React.FC = ({ studyId }) => {
toastSuccess('Series deleted successfully');
refetchSeries();
},
- onError: (error: any) => {
- toastError(`Failed to delete series ${error}`);
+ onError: () => {
+ toastError(`Failed to delete series`);
},
}
);
diff --git a/src/content/studies/AiStudy.tsx b/src/content/studies/AiStudy.tsx
index 39615021..1fb3a61f 100644
--- a/src/content/studies/AiStudy.tsx
+++ b/src/content/studies/AiStudy.tsx
@@ -47,7 +47,7 @@ const AiStudy: React.FC = ({ studyId, onClose, show }) => {
[[]],
{
onSuccess: (jobId) => {
- toastSuccess("Job Created " + jobId)
+ toastSuccess("Job Created")
setJobId(jobId)
}
}
diff --git a/src/content/studies/StudyRoot.tsx b/src/content/studies/StudyRoot.tsx
index f2562389..355c969f 100644
--- a/src/content/studies/StudyRoot.tsx
+++ b/src/content/studies/StudyRoot.tsx
@@ -37,7 +37,7 @@ const StudyRoot: React.FC = ({ patient, onStudyUpdated, onStudyS
onStudyUpdated();
},
onError: (error: any) => {
- toastError('Failed to delete study: ' + error);
+ toastError('Failed to delete study');
},
}
);