Open a template from its cards even when a saved draft exists.

This commit is contained in:
adilallo committed 2026-11-22 18:08:34 -07:00
1 parent 851133e56d
commit 55b071aa83
11 files changed
+326 -140

No files matched your search

+17 -5
View File
@@ -336,6 +336,8 @@ function CreateFlowLayoutContent({
replaceState,
router,
fromCreateWizard,
signedIn: Boolean(sessionUser),
requestConfirm,
markCreateFlowInteraction,
});
const isCreateTemplatesPickerRoute =
@@ -901,15 +903,25 @@ function CreateFlowLayoutContent({
templateTitle={customizeDialog?.templateTitle ?? ""}
valuesCount={customizeDialog?.valuesCount ?? 0}
cardsCount={customizeDialog?.cardsCount ?? 0}
initialTitle={typeof state.title === "string" ? state.title : ""}
initialTitle={
fromCreateWizard && state.templateReviewEntryFromCreateFlow === true
? typeof state.title === "string"
? state.title
: ""
: ""
}
initialDescription={
typeof state.communityContext === "string"
? state.communityContext
fromCreateWizard && state.templateReviewEntryFromCreateFlow === true
? typeof state.communityContext === "string"
? state.communityContext
: ""
: ""
}
initialLocation={
typeof state.communityLocation === "string"
? state.communityLocation
fromCreateWizard && state.templateReviewEntryFromCreateFlow === true
? typeof state.communityLocation === "string"
? state.communityLocation
: ""
: ""
}
onClose={closeCustomizeDialog}