修复 AmosRunwayPanel TS strict null check
This commit is contained in:
@@ -28,8 +28,8 @@ export function AmosRunwayPanel({
|
|||||||
|
|
||||||
const maxItems = Math.max(
|
const maxItems = Math.max(
|
||||||
runwayPairs.length,
|
runwayPairs.length,
|
||||||
runwayTemps?.length || 0,
|
runwayTemps?.length ?? 0,
|
||||||
runwayWinds?.length || 0,
|
runwayWinds?.length ?? 0,
|
||||||
);
|
);
|
||||||
const pairs = runwayPairs.slice(0, maxItems);
|
const pairs = runwayPairs.slice(0, maxItems);
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ export function AmosRunwayPanel({
|
|||||||
</div>
|
</div>
|
||||||
<div className="scan-amos-runway-grid">
|
<div className="scan-amos-runway-grid">
|
||||||
{pairs.map(([rwyA, rwyB], idx) => {
|
{pairs.map(([rwyA, rwyB], idx) => {
|
||||||
const temps = runwayTemps[idx];
|
const temps = runwayTemps?.[idx];
|
||||||
const wind = runwayWinds?.[idx];
|
const wind = runwayWinds?.[idx];
|
||||||
const vis = runwayVis?.[idx];
|
const vis = runwayVis?.[idx];
|
||||||
const rvr = runwayRvr?.[idx];
|
const rvr = runwayRvr?.[idx];
|
||||||
|
|||||||
Reference in New Issue
Block a user