-
-
- Required information
-
-
- {required.map((item, idx) => (
- -
-
-
- ))}
-
-
+ {required.length > 0 && (
+
+
+ Required information
+
+
+ {required.map((item, idx) => (
+ -
+
+
+ ))}
+
+
+ )}
{optional.length > 0 ? (
{optional.map((item, idx) =>
- item.mediaType.includes(
+ item.mediaType?.includes(
'application/vnd.pipeline.tts-config+xml'
) ? (
'' // skip it, we don't need to provide a visual field for this option, it's set globally
) : (
- -
- {item.mediaType.includes(
- 'text/css'
- ) ? (
-
- ) : (
-
- )}
+
-
+
)
)}
@@ -205,9 +259,20 @@ export function ScriptForm({ job, script }: { job: Job; script: Script }) {
)}