Skip to content

Commit 6077a81

Browse files
committed
Remove unnecessary type casting
1 parent 922e92d commit 6077a81

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/webui/src/client/ui/ClockView/DirectorScreen.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,7 @@ function DirectorScreenRender({
394394
// Only consider VT and LIVE_SPEAK on the PGM output layer
395395
const ol = currentShowStyleBase.outputLayers?.[pi.piece.outputLayerId]
396396
if ((sl?.type === SourceLayerType.VT || sl?.type === SourceLayerType.LIVE_SPEAK) && ol?.isPGM) {
397-
const ab = (pi.piece as unknown as { abSessions?: Array<{ poolName: string; sessionName: string }> })
398-
.abSessions
397+
const ab = pi.piece.abSessions
399398
if (!ab || ab.length === 0) continue
400399
for (const s of ab) {
401400
const pool = playlist.assignedAbSessions?.[s.poolName]
@@ -429,8 +428,7 @@ function DirectorScreenRender({
429428
// Only consider VT and LIVE_SPEAK on the PGM output layer
430429
const ol = ssb.outputLayers?.[pi.piece.outputLayerId]
431430
if ((sl?.type === SourceLayerType.VT || sl?.type === SourceLayerType.LIVE_SPEAK) && ol?.isPGM) {
432-
const ab = (pi.piece as unknown as { abSessions?: Array<{ poolName: string; sessionName: string }> })
433-
.abSessions
431+
const ab = pi.piece.abSessions
434432
if (!ab || ab.length === 0) continue
435433
for (const s of ab) {
436434
const pool = playlist.assignedAbSessions?.[s.poolName]

0 commit comments

Comments
 (0)