Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import type { FieldArrayMethodProps, InternalFieldName } from '../types';
import isUndefined from '../utils/isUndefined';
export default (
name: InternalFieldName,
index: number,
options: FieldArrayMethodProps = {},
): string =>
options.shouldFocus || isUndefined(options.shouldFocus)
? options.focusName ||
`${name}.${isUndefined(options.focusIndex) ? index : options.focusIndex}.`
: '';