Skip to content

Commit

Permalink
PSP-7803 Refresh stale disposition file after checklist is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
asanchezr committed Feb 13, 2024
1 parent ce39d85 commit 6a64ef0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const DispositionRouter: React.FC<IDispositionRouterProps> = props => {
)}
claim={Claims.DISPOSITION_EDIT}
key={'disposition'}
title={'Updpate Appraisal'}
title={'Update Appraisal'}
/>
<AppRoute
exact
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Api_FileWithChecklist } from '@/models/api/File';
export interface IDispositionChecklistContainerProps {
formikRef: React.Ref<FormikProps<ChecklistFormModel>>;
dispositionFile?: Api_DispositionFile;
onSuccess: () => void;
onSuccess: (updateProperties?: boolean, updateFile?: boolean) => void;
View: React.FC<IUpdateChecklistFormProps>;
}

Expand All @@ -42,7 +42,7 @@ export const UpdateDispositionChecklistContainer: React.FC<IDispositionChecklist
};

const onUpdateSuccess = async (apiDispositionFile: Api_FileWithChecklist) => {
onSuccess && onSuccess();
onSuccess && onSuccess(false, true);
};

// generic error handler.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { UpdatePropertiesYupSchema } from './UpdatePropertiesYupSchema';
export interface IUpdatePropertiesProps {
file: Api_File;
setIsShowingPropertySelector: (isShowing: boolean) => void;
onSuccess: (refreshProperties?: boolean) => void;
onSuccess: (updateProperties?: boolean, updateFile?: boolean) => void;
updateFileProperties: (
file: Api_File,
userOverrideCodes: UserOverrideCode[],
Expand Down

0 comments on commit 6a64ef0

Please sign in to comment.