Skip to content

Commit

Permalink
fix: bug fix in quick-mos
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Oct 22, 2024
1 parent ece880f commit 7fd531b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/quick-mos/src/convertFromSofieSnapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function convertFromSofieSnapshot(
output.push({
ro: runningOrder,
stories: fixStoryBody(fullStories),
readyToAir: rundown.data.readyToAir || false,
readyToAir: snapShotData?.playlist?.name === 'READY ON AIR' || false,
})
})
return output
Expand Down
2 changes: 1 addition & 1 deletion packages/quick-mos/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ function fetchRunningOrders() {

runningOrders.push({
ro,
stories: fileContents.stories,
stories: fileContents.stories ?? [],
readyToAir: fileContents.READY_TO_AIR,
})
} else if (fileContents.snapshot && fileContents.snapshot.type === 'rundownplaylist') {
Expand Down

0 comments on commit 7fd531b

Please sign in to comment.