admin(ui): add ability to edit nests

This commit is contained in:
Matthew Penner 2021-01-08 10:02:49 -07:00
parent 0e366f69ee
commit 20234b308c
13 changed files with 157 additions and 22 deletions

View file

@ -44,7 +44,7 @@ const LocationsContainer = () => {
return;
}
clearAndAddHttpError({ error, key: 'locations' });
clearAndAddHttpError({ key: 'locations', error });
}, [ error ]);
const length = locations?.items?.length || 0;

View file

@ -38,7 +38,7 @@ export default () => {
setVisible(false);
})
.catch(error => {
clearAndAddHttpError(error);
clearAndAddHttpError({ key: 'location:create', error });
setSubmitting(false);
});
};