fix(grid): protect unsaved cell edits on data tab reuse

This commit is contained in:
zipg authored and GitHub committed 2026-08-06 20:10:56 +08:00
1 parent 3e6b3d5321
commit 62b0c5d880
5 files changed
+49 -9

No files matched your search

@@ -223,6 +223,7 @@ describe("useSidebarDataOpenRuntime", () => {
["pinned", { pinned: true }],
["executing", { isExecuting: true, executionId: "running" }],
["pending edits", { pendingDataChangeCount: 1 }],
["pending editor draft", { hasPendingDataEditorDraft: true }],
])("opens a new tab instead of replacing an active %s data tab", async (_label, patch) => {
mocks.dataTabReuseMode = "active-tab";
const activeTab = {