Persist choices through to completed page

This commit is contained in:
adilallo committed 2026-04-29 15:02:47 -06:00
1 parent 815de2fdfd
commit ac1157a172
13 files changed
+804 -30

No files matched your search

@@ -163,16 +163,11 @@ export function useTemplateReviewActions({
})
: sections;
const summaryRaw =
typeof template.description === "string"
? template.description.trim()
: "";
const hasCommunityName =
typeof state.title === "string" && state.title.trim().length > 0;
updateState({
...coreValuesPrefill,
sections: sectionsWithoutValues,
...(summaryRaw.length > 0 ? { summary: summaryRaw } : {}),
templateReviewBackSlug: templateReviewSlug,
...(hasCommunityName
? { pendingTemplateAction: undefined }