fix(web): 修復 webpack build 錯誤 — 重複 flexShrink + firing_count undefined
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
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:
@@ -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={{
|
||||
|
||||
@@ -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 }}>
|
||||
|
||||
Reference in New Issue
Block a user