()
| 224 | } |
| 225 | |
| 226 | const removePlanDraftBlocks = () => { |
| 227 | for (let index = contentBlocks.length - 1; index >= 0; index--) { |
| 228 | if (contentBlocks[index]?.type === 'plan_draft') { |
| 229 | contentBlocks.splice(index, 1) |
| 230 | } |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | const appendFinalPlanBlock = (plan: PlanContentBlock) => { |
| 235 | const planBlock = JSON.parse(JSON.stringify(plan)) as PlanContentBlock |