Skip to content

Commit 132ebc0

Browse files
committed
chore: fix unit test and lint
1 parent 4a3f6c1 commit 132ebc0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/webui/src/client/lib/__tests__/rundownTiming.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,6 +1354,7 @@ describe('rundown Timing Calculator', () => {
13541354
asPlayedPlaylistDuration: 8000,
13551355
currentPartWillAutoNext: false,
13561356
currentTime: 0,
1357+
partsInQuickLoop: {},
13571358
rundownExpectedDurations: {
13581359
[rundownId1]: 4000,
13591360
},
@@ -1503,6 +1504,7 @@ describe('rundown Timing Calculator', () => {
15031504
asPlayedPlaylistDuration: 8000,
15041505
currentPartWillAutoNext: false,
15051506
currentTime: 3000,
1507+
partsInQuickLoop: {},
15061508
rundownExpectedDurations: {
15071509
[rundownId1]: 6000,
15081510
},

packages/webui/src/client/ui/Status/SystemStatus/SystemStatus.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { useSubscription, useTracker } from '../../../lib/ReactMeteorData/react-
33
import { PeripheralDevice, PeripheralDeviceType } from '@sofie-automation/corelib/dist/dataModel/PeripheralDevice'
44
import { useTranslation } from 'react-i18next'
55
import { protectString, unprotectString } from '../../../lib/tempLib'
6-
import * as _ from 'underscore'
76
import { NotificationCenter, NoticeLevel, Notification } from '../../../lib/notifications/notifications'
87
import { StatusResponse } from '@sofie-automation/meteor-lib/dist/api/systemStatus'
98
import { MeteorCall } from '../../../lib/meteorApi'
@@ -38,7 +37,12 @@ export function SystemStatus(): JSX.Element {
3837
{coreSystem && <CoreItem coreSystem={coreSystem} systemStatus={systemStatus} />}
3938

4039
{devicesHeirarchy.map((d) => (
41-
<DeviceItemWithChildren playoutDebugStates={playoutDebugStates} parentDevice={null} device={d} />
40+
<DeviceItemWithChildren
41+
key={unprotectString(d.device._id)}
42+
playoutDebugStates={playoutDebugStates}
43+
parentDevice={null}
44+
device={d}
45+
/>
4246
))}
4347
</div>
4448
</div>

0 commit comments

Comments
 (0)