v0.6.71: build error fix#4493
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview When migrating a record-shaped subblock, it now explicitly derives Reviewed by Cursor Bugbot for commit 49713f8. Configure here. |
Greptile SummaryThis PR fixes a TypeScript build error in
Confidence Score: 5/5Safe to merge — the change is a narrow, well-scoped type-error fix with no logic regressions. The only changed file is a migration helper, and the refactor preserves all existing branching behaviour. The one small functional delta — defaulting No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[migrateBlockSubblockIds called] --> B{oldId in subBlocks?}
B -- No --> C[skip]
B -- Yes --> D{newId already in result?}
D -- Yes --> E[delete oldId and continue]
D -- No --> F[oldEntry typed as unknown]
F --> G{isPlainRecord check}
G -- Yes --> H[Extract type from configuredType or oldEntry.type]
H --> I[value = hasOwn check, default to null]
I --> J[Assign spread + id + type + value to newId]
G -- No --> K[Assign id + configuredType + oldEntry as value to newId]
J --> L[delete oldId from result]
K --> L
Reviews (1): Last reviewed commit: "fix(type-error): subblock migrations typ..." | Re-trigger Greptile |
fix(type-error): subblock migrations type error (#4492)