Keep the photo a community already uploaded when they pick a template from the wizard.

This commit is contained in:
adilallo committed 2026-11-24 21:11:40 -07:00
1 parent 6bf890fa78
commit 5dc936834c
6 files changed
+58 -17

No files matched your search

+3
View File
@@ -238,6 +238,7 @@ export type TemplateApplyIdentity = {
title?: string;
communityContext?: string;
communityLocation?: string;
communityAvatarUrl?: string;
};
/**
@@ -256,6 +257,7 @@ export function buildAppliedTemplateCreateFlowState(args: {
const title = args.identity?.title?.trim();
const communityContext = args.identity?.communityContext?.trim();
const communityLocation = args.identity?.communityLocation?.trim();
const communityAvatarUrl = args.identity?.communityAvatarUrl?.trim();
const seeded: CreateFlowState = {
...prefill,
@@ -274,6 +276,7 @@ export function buildAppliedTemplateCreateFlowState(args: {
seeded.summary = communityContext;
}
if (communityLocation) seeded.communityLocation = communityLocation;
if (communityAvatarUrl) seeded.communityAvatarUrl = communityAvatarUrl;
if (args.identity) seeded.templateReviewEntryFromCreateFlow = true;
if (args.mode === "useWithoutChanges") {