Skip to content

Commit

Permalink
Fixed edit location UI issue in senior delegate panel (#9793)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljames-dj authored Aug 19, 2024
1 parent 73a3167 commit 5c6eea6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/webpacker/components/Panel/pages/Regions/Subregion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ export default function Subregion({ title, groupId }) {
confirm().then(() => {
save(apiV0Urls.userRoles.update(delegateToChange.id), {
location: newLocation,
}, sync, { method: 'PATCH' });
}, () => {
sync();
setOpenModalType(null);
}, { method: 'PATCH' });
});
};

Expand Down

0 comments on commit 5c6eea6

Please sign in to comment.