Skip to content

Commit

Permalink
fix(#227): don't crash if there's no TTS config option
Browse files Browse the repository at this point in the history
This came up related to 2-step jobs
  • Loading branch information
marisademeglio committed Jul 11, 2024
1 parent 9350e33 commit 7cba53d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/components/ScriptForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ export function ScriptForm({ job, script }: { job: Job; script: Script }) {
// if present, it will be an input to the script but an optional one

let ttsConfigOpt = optional.find((o) =>
o.mediaType.includes('application/vnd.pipeline.tts-config+xml')
o.mediaType?.includes('application/vnd.pipeline.tts-config+xml')
)
console.log(ttsConfigOpt)

let ttsConfigExists = await App.pathExists(
settings.ttsConfig.xmlFilepath
)
Expand Down

0 comments on commit 7cba53d

Please sign in to comment.