Commit a28f5b1
fix: simplify draft save payload to match working autoSaveDraft pattern
✅ Remove unnecessary fields from draft payload to match useAutoSaveDraft hook
✅ Keep only data_hash and machine fields that backend expects
✅ Add console logging for debugging payload structure
✅ Ensure API call matches working auto-save implementation exactly
The working useAutoSaveDraft hook only sends data_hash and machine fields,
so our manual draft save should use the same minimal payload structure.
This ensures compatibility with the existing backend endpoint.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 4d5e457 commit a28f5b1
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | 297 | | |
301 | 298 | | |
| 299 | + | |
302 | 300 | | |
303 | 301 | | |
304 | 302 | | |
305 | 303 | | |
| 304 | + | |
306 | 305 | | |
307 | 306 | | |
308 | 307 | | |
| |||
0 commit comments