Commit 8aeba44
committed
fix: prioritize data grid save over sidebar edits in close-with-save flow
saveAndClose() checked rightPanelState.editState.hasEdits before
changeManager.hasChanges, causing it to take the sidebar-only save path
(which doesn't execute SQL) when the inspector panel reflected data grid
edits. This matched the user's report: Cmd+W → Save behaved identically
to Cmd+W → Don't Save.
The regular saveChanges() already had the correct priority order (data
grid first, sidebar second). This aligns saveAndClose() with that logic.1 parent c52e3ca commit 8aeba44
1 file changed
+15
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
362 | 375 | | |
363 | 376 | | |
364 | 377 | | |
365 | 378 | | |
366 | 379 | | |
367 | 380 | | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
| 381 | + | |
377 | 382 | | |
378 | 383 | | |
379 | 384 | | |
| |||
0 commit comments