ui(admin): fix bad redirect on egg delete

This commit is contained in:
Matthew Penner 2021-10-23 14:19:50 -06:00
parent 0e870ab256
commit 7f7506e5a9
No known key found for this signature in database
GPG key ID: BAB67850901908A8

View file

@ -255,7 +255,7 @@ export default function EggSettingsContainer ({ egg }: { egg: Egg }) {
<div css={tw`flex flex-row`}>
<EggDeleteButton
eggId={egg.id}
onDeleted={() => history.push(`/admin/nests/${egg.nestId}`)}
onDeleted={() => history.push('/admin/nests')}
/>
<Button type="submit" size="small" css={tw`ml-auto`} disabled={isSubmitting || !isValid}>
Save Changes