fix: Law10Tab runtime error - add missing translation function parameter
Fixed critical bug causing Law10Tab to crash with "TypeError: a is not a function". The getStatusLabel() function was being called without the required 't' parameter on line 1244, causing a runtime error when rendering the compliance summary table. Error: Uncaught TypeError: a is not a function at tr (index-yIapr3VZ.js:544:35927) Fix: Changed getStatusLabel(req.result.status) to getStatusLabel(req.result.status, t) Law10Tab now loads correctly without errors. https://claude.ai/code/session_01GNbnkFoESkRcnPr3bLCYDg
This commit is contained in:
@@ -1241,7 +1241,7 @@ function Law10SummaryRoadmap({
|
|||||||
<div className="flex items-center justify-center gap-2">
|
<div className="flex items-center justify-center gap-2">
|
||||||
<StatusIcon status={req.result.status} />
|
<StatusIcon status={req.result.status} />
|
||||||
<Badge
|
<Badge
|
||||||
label={getStatusLabel(req.result.status)}
|
label={getStatusLabel(req.result.status, t)}
|
||||||
variant={getStatusBadgeVariant(req.result.status)}
|
variant={getStatusBadgeVariant(req.result.status)}
|
||||||
size="sm"
|
size="sm"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user