Skip to content

Commit

Permalink
fix: remove non-null assertor
Browse files Browse the repository at this point in the history
  • Loading branch information
Saelmala committed Sep 20, 2024
1 parent 62ea4b4 commit 963f016
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api/manager/workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,10 @@ export async function startProduction(
source.type !== 'mediaplayer'
)
.map((source) => {
return source._id!.toString();
if (source._id !== undefined) {
return source._id.toString();
}
return '';
})
).catch((error) => {
if (error === "Can't connect to Database") {
Expand Down

0 comments on commit 963f016

Please sign in to comment.