Keep catalog method section editors after a Customize title override so Core Principle and related copy are not replaced by an empty custom-policy body.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
adilallo
2026-08-21 14:11:21 -06:00
co-authored by Cursor
parent 4006fe5c6c
commit 75ba0a214f
7 changed files with 152 additions and 7 deletions
@@ -40,6 +40,7 @@ import { usesWizardFieldBlocksModalBody } from "../../../../lib/create/usesWizar
import type { CustomMethodCardFieldBlock } from "../../../../lib/create/customMethodCardFieldBlocks";
import {
CUSTOM_RULE_FACET_BY_GROUP,
isCatalogMethodCardId,
type TemplateFacetGroupKey,
} from "../../../../lib/create/customRuleFacets";
import type { MethodFacetGroupKey } from "../../../../lib/create/removeMethodCardFromFacetSelection";
@@ -378,10 +379,11 @@ export function FinalReviewChipEditModal({
modalEditUnlocked: true,
draftFieldBlocks,
}) ||
isCustomMethodCardId(
(isCustomMethodCardId(
target.overrideKey,
state.customMethodCardMetaById,
)),
) &&
!isCatalogMethodCardId(target.overrideKey))),
);
const handleWizardFieldBlocksChange = useCallback(