mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
@@ -213,7 +213,7 @@ export default function EditAdvertisement() {
|
||||
}, [advertisementId]);
|
||||
|
||||
const onSubmit = async (values) => {
|
||||
if (!isDirty) { bypassOnce(); return navigate(-1); }
|
||||
if (!isDirty) { bypassOnce(); return navigate("/admin/advertisements"); }
|
||||
|
||||
const payload = {
|
||||
...values,
|
||||
@@ -506,7 +506,7 @@ export default function EditAdvertisement() {
|
||||
</SectionCard>
|
||||
|
||||
<div className="flex justify-end gap-2 pt-2">
|
||||
<Button type="button" variant="outline" onClick={() => navigate(-1)} disabled={loading}>
|
||||
<Button type="button" variant="outline" onClick={() => navigate("/admin/advertisements")} disabled={loading}>
|
||||
Cancel
|
||||
</Button>
|
||||
<Button type="submit" disabled={loading}>
|
||||
|
||||
Reference in New Issue
Block a user