Resume the draft from Create rule instead of deleting it.
This commit is contained in:
1 parent
d31045b0e5
commit
a846169960
9 files changed
+119
-71
No files matched your search
@@ -40,7 +40,7 @@ import type { CreateFlowStep } from "../create/types";
|
||||
import { clearAnonymousCreateFlowStorage } from "../create/utils/anonymousDraftStorage";
|
||||
import { clearBrowserRuleData } from "../create/utils/clearBrowserRuleData";
|
||||
import { clearCoreValueDetailsLocalStorage } from "../create/utils/coreValueDetailsLocalStorage";
|
||||
import { prepareFreshCreateFlowEntrySync } from "../create/utils/prepareFreshCreateFlowEntry";
|
||||
import { createRuleEntryPath } from "../create/utils/createRuleEntry";
|
||||
import { createFlowStepPath } from "../create/utils/createFlowPaths";
|
||||
import { useMediaQuery } from "../../hooks/useMediaQuery";
|
||||
import {
|
||||
@@ -310,8 +310,7 @@ export default function ProfilePageClient() {
|
||||
}, [draft, router]);
|
||||
|
||||
const handleStartNewCustomRule = useCallback(() => {
|
||||
prepareFreshCreateFlowEntrySync({ signedIn: true });
|
||||
router.push("/create/informational");
|
||||
router.push(createRuleEntryPath());
|
||||
}, [router]);
|
||||
|
||||
const handleRequestDeleteDraft = useCallback(() => {
|
||||
|
||||
Reference in new issue
Block a user