We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55a1180 commit 263e0c5Copy full SHA for 263e0c5
app/wall/utils.test.ts
@@ -29,6 +29,7 @@ test("updateTargetStationBeamCurrent returns new array with beam current of targ
29
targetStation: "Target station 123",
30
beamCurrentPv: beamCurrPv,
31
beamCurrent: 0.0,
32
+ instruments: [],
33
};
34
const expectedValue = 3.14159265358979;
35
expect(
app/wall/utils.ts
@@ -39,7 +39,7 @@ export function updateTargetStationBeamCurrent(
39
) {
40
const newData: Array<targetStation> = [...prev];
41
42
- let foundTs = newData.find((ts) => ts.beamCurrentPv === updatedPVName);
+ const foundTs = newData.find((ts) => ts.beamCurrentPv === updatedPVName);
43
if (foundTs) {
44
foundTs.beamCurrent = updatedPVvalue;
45
}
0 commit comments