mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-13 17:10:06 +00:00
[automated] Apply ESLint and Oxfmt fixes
This commit is contained in:
@@ -157,8 +157,7 @@ function assetKindToMediaType(kind: AssetKind): string {
|
||||
}
|
||||
|
||||
const outputItems = computed<FormDropdownItem[]>(() => {
|
||||
if (!['image', 'video', 'audio', 'mesh'].includes(assetKind ?? ''))
|
||||
return []
|
||||
if (!['image', 'video', 'audio', 'mesh'].includes(assetKind ?? '')) return []
|
||||
|
||||
const targetMediaType = assetKindToMediaType(assetKind!)
|
||||
const outputFiles = outputMediaAssets.media.value.filter(
|
||||
@@ -424,8 +423,7 @@ function getMediaUrl(
|
||||
filename: string,
|
||||
type: 'input' | 'output' = 'input'
|
||||
): string {
|
||||
if (!['image', 'video', 'audio', 'mesh'].includes(assetKind ?? ''))
|
||||
return ''
|
||||
if (!['image', 'video', 'audio', 'mesh'].includes(assetKind ?? '')) return ''
|
||||
const params = new URLSearchParams({ filename, type })
|
||||
appendCloudResParam(params, filename)
|
||||
return `/api/view?${params}`
|
||||
|
||||
Reference in New Issue
Block a user