Skip to content

Commit

Permalink
ResourceUpdates Bug Fix (#10341)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacobjeevan authored Jan 31, 2025
1 parent 5a7bdb8 commit 4d9e7d0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/Resource/ResourceDetailsUpdate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const ResourceDetailsUpdate = (props: resourceProps) => {
onResponse: ({ res, data }) => {
if (res && data) {
const d = data;
d["status"] = qParams.status || data.status;
d["status"] = qParams.status || data.status.toLowerCase();
dispatch({ type: "set_form", form: d });
}
setIsLoading(false);
Expand Down Expand Up @@ -233,11 +233,8 @@ export const ResourceDetailsUpdate = (props: resourceProps) => {
<FacilitySelect
multiple={false}
name="assigned_facility"
facilityType={1510}
selected={state.form.assigned_facility_object}
setSelected={(obj) =>
setFacility(obj, "assigned_facility_object")
}
selected={state.form.assigned_facility}
setSelected={(obj) => setFacility(obj, "assigned_facility")}
errors={state.errors.assigned_facility}
/>
</div>
Expand Down

0 comments on commit 4d9e7d0

Please sign in to comment.