index value display bug

This commit is contained in:
wataru 2023-05-26 08:32:27 +09:00
parent 20303d9dfc
commit 7746f3168f

View File

@ -49,7 +49,7 @@ export const ModelSwitchRow = (_props: ModelSwitchRowProps) => {
const metadata = x.deprecated ? `[${index}] [deprecated version]` : `[${index}] [${f0str},${srstr},${embedstr},${typestr}]` const metadata = x.deprecated ? `[${index}] [deprecated version]` : `[${index}] [${f0str},${srstr},${embedstr},${typestr}]`
const tuning = `t:${x.defaultTune}` const tuning = `t:${x.defaultTune}`
const useIndex = x.indexFile != null && x.featureFile != null ? `i:true` : `i:false` const useIndex = x.indexFile != null ? `i:true` : `i:false`
const defaultIndexRatio = `ir:${x.defaultIndexRatio}` const defaultIndexRatio = `ir:${x.defaultIndexRatio}`
const subMetadata = `(${tuning},${useIndex},${defaultIndexRatio})` const subMetadata = `(${tuning},${useIndex},${defaultIndexRatio})`
const displayName = `${metadata} ${x.name || filename} ${subMetadata}` const displayName = `${metadata} ${x.name || filename} ${subMetadata}`