File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export default function TargetStation({
88} : {
99 name : string ;
1010 instruments : Array < instListEntryWithRunstatePVandValue > ;
11- beamCurrent : number | null | undefined ;
11+ beamCurrent : number | string | null | undefined ;
1212} ) {
1313 instruments = instruments . sort ( ( instrumenta , instrumentb ) =>
1414 instrumenta . name . localeCompare ( instrumentb . name ) ,
@@ -17,7 +17,9 @@ export default function TargetStation({
1717 < div className = "flex flex-col justify-center items-start w-full" >
1818 < h1 className = "w-full text-left text-gray-600 dark:text-gray-200 font-semibold text-md mt-2 py-2 " >
1919 { name } { " " }
20- { beamCurrent !== undefined && beamCurrent !== null
20+ { beamCurrent !== undefined &&
21+ beamCurrent !== null &&
22+ typeof beamCurrent !== "string"
2123 ? "- " + beamCurrent . toFixed ( 2 ) + " μA"
2224 : "" }
2325 </ h1 >
You can’t perform that action at this time.
0 commit comments