fix(web): 修復 webpack build 錯誤 — 重複 flexShrink + firing_count undefined
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled

header.tsx: 移除重複的 flexShrink: 0 屬性 (TS1117)
classic/page.tsx: firing_count ?? 0 處理 undefined (TS2322)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-09 23:45:52 +08:00
parent df0afa654f
commit 2897007014
2 changed files with 1 additions and 2 deletions

View File

@@ -193,7 +193,7 @@ function MonitoringTools() {
fontSize: 10, padding: '1px 7px', borderRadius: 8, fontWeight: 600,
background: 'rgba(245,158,11,0.12)', color: '#F59E0B',
}}>
{tDash('alertBadge', { count: tool.firing_count })}
{tDash('alertBadge', { count: tool.firing_count ?? 0 })}
</span>
) : (
<span style={{

View File

@@ -75,7 +75,6 @@ export function Header({
background: '#faf9f3',
overflow: 'hidden',
transition: 'width 0.3s ease',
flexShrink: 0,
}}>
{/* NemoClaw mini SVG */}
<div style={{ width: 36, height: 36, flexShrink: 0 }}>