Skip to content

Commit c7a1e41

Browse files
author
Shreyas-Microsoft
committed
fix bug on modernization page
1 parent 489e383 commit c7a1e41

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/frontend/src/pages/modernizationPage.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ const ModernizationPage = () => {
756756
}
757757

758758
// Update text with file count
759-
setText(`${new Date().toLocaleDateString()} (${fileItems.length} files)`);
759+
setText(`${new Date().toLocaleDateString()} (${fileItems.length} ${fileItems.length === 1 ? 'file' : 'files'})`);
760760
}
761761
}, [reduxFileList, batchId]);
762762

@@ -818,6 +818,10 @@ const ModernizationPage = () => {
818818

819819
return updated;
820820
});
821+
822+
// Navigate to batch view page when processing is complete
823+
console.log("All files processed, navigating to batch view page");
824+
navigate(`/batch-view/${batchId}`);
821825
}
822826
} catch (err) {
823827
console.error("Failed to update summary status:", err);
@@ -1218,6 +1222,7 @@ useEffect(() => {
12181222
</div>
12191223

12201224
</Card>
1225+
{expandedSections.includes("errors") && renderErrorContent(batchSummary)}
12211226

12221227
</div>
12231228
</>

0 commit comments

Comments
 (0)