ui(admin): fix bad redirect on egg delete
This commit is contained in:
parent
0e870ab256
commit
7f7506e5a9
|
@ -255,7 +255,7 @@ export default function EggSettingsContainer ({ egg }: { egg: Egg }) {
|
||||||
<div css={tw`flex flex-row`}>
|
<div css={tw`flex flex-row`}>
|
||||||
<EggDeleteButton
|
<EggDeleteButton
|
||||||
eggId={egg.id}
|
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}>
|
<Button type="submit" size="small" css={tw`ml-auto`} disabled={isSubmitting || !isValid}>
|
||||||
Save Changes
|
Save Changes
|
||||||
|
|
Loading…
Reference in New Issue