Let Use without changes from a template collect identity instead of the full questionnaire.
Direct catalog picks walk name, description, and photo, then stakeholders; leftover drafts no longer skip that path. In-flow template picks keep community identity. Exit on a direct template preview leaves immediately because nothing has been collected yet. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -102,6 +102,18 @@ export function SignedInDraftHydration({
|
||||
if (urlStep === "completed") {
|
||||
return;
|
||||
}
|
||||
/**
|
||||
* Direct template preview is a new-rule entry, not “continue draft”.
|
||||
* Applying a saved `currentStep` here is what yanked Use without changes
|
||||
* past name / description / photo to stakeholders.
|
||||
*/
|
||||
if (pathname?.includes("/create/review-template/")) {
|
||||
return;
|
||||
}
|
||||
if (touchedRef.current) {
|
||||
finishedUserIdRef.current = userId;
|
||||
return;
|
||||
}
|
||||
|
||||
let cancelled = false;
|
||||
setLoadingHydration(true);
|
||||
|
||||
Reference in New Issue
Block a user