Fix cutover page crash: clear expect sheets instead of removed setBaselinePorts.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-18 21:01:34 +08:00
parent 60a663e2f6
commit 2c2768a3d0

View file

@ -359,7 +359,9 @@ export function BizMigrationPage() {
if (!projectId) { if (!projectId) {
setBatches([]); setBatches([]);
setBatchId(""); setBatchId("");
setBaselinePorts([]); setExpectSheets([]);
setExpectMetricId("");
setSelectedExpectKeys(new Set());
setRedTickets([]); setRedTickets([]);
setOpenRedCount(0); setOpenRedCount(0);
setBoard(null); setBoard(null);