Save a guest edit on the published Rule, and publish a new one when that update is refused.

A leftover editing id was treated as a successful finish in this browser only, so the public Rule stayed stale and a later Finish could skip creating a new Rule.
This commit is contained in:
adilallo committed 2026-11-23 14:59:46 -07:00
1 parent 0535f6f167
commit 2644023b5a
6 files changed
+207 -44

No files matched your search

+4 -1
View File
@@ -485,10 +485,13 @@ function CreateFlowLayoutContent({
* Still merge {@link methodSectionsPinsFromPublishedHydratePatch}: selections
* may already match draft state while compact CardStack pins stayed false
* (pins are normally set only on facet **Confirm**).
*
* An empty id with that same content is a finished edit. Writing the id
* back would make the next Finish update the old Rule.
*/
if (
titleOk &&
editingId === last.id &&
(editingId === last.id || editingId.length === 0) &&
sectionsClear &&
!isPublishedRuleHydratePatchIncomplete(state, patch)
) {