|
@@ -5,8 +5,9 @@ import { RootState } from '../../../states/store';
|
|
|
export const saveReportThunk = createAsyncThunk(
|
|
|
'diagnosticReport/saveReport',
|
|
|
// eslint-disable-next-line
|
|
|
- async (studyId: string, { getState, dispatch }) => {
|
|
|
+ async (_, { getState, dispatch }) => {
|
|
|
const state = getState() as RootState;
|
|
|
+ const studyId = state.baseInfo.studyId;
|
|
|
const report = {
|
|
|
headers: {
|
|
|
name: state.baseInfo.patientName,
|