diff --git a/code/ui/blocks/src/components/ArgsTable/ArgControl.tsx b/code/ui/blocks/src/components/ArgsTable/ArgControl.tsx index bc562ea5568e..4146cd1c4930 100644 --- a/code/ui/blocks/src/components/ArgsTable/ArgControl.tsx +++ b/code/ui/blocks/src/components/ArgsTable/ArgControl.tsx @@ -13,11 +13,10 @@ import { RangeControl, TextControl, } from '../../controls'; -import type { Args } from './types'; -import type { InputType } from '@storybook/types'; +import type { Args, ArgType } from './types'; export interface ArgControlProps { - row: InputType; + row: ArgType; arg: any; updateArgs: (args: Args) => void; isHovered: boolean; @@ -66,7 +65,7 @@ export const ArgControl: FC = ({ row, arg, updateArgs, isHovere const onBlur = useCallback(() => setFocused(false), []); const onFocus = useCallback(() => setFocused(true), []); - if (!control && row.type !== 'function') + if (!control && row.type?.name !== 'function') return isHovered ? (