Commit 85c06b9
fix: handle templates with no steps in sync download
When downloading a template that has no steps defined, `result.content.steps`
is undefined. JSON.stringify strips undefined values, so after writing and
reading the file back, the `steps` property would be missing.
Use nullish coalescing to default to empty object: `steps ?? {}`
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 447f73f commit 85c06b9
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
| 321 | + | |
321 | 322 | | |
322 | 323 | | |
323 | 324 | | |
| |||
0 commit comments