File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,13 +57,18 @@ function AddFullBundle({
5757} : AddFullBundleProps ) {
5858 adaptiveCardHostConfig && adaptiveCardHostConfigDeprecation ( ) ;
5959
60- const attachmentForScreenReaderMiddleware = useMemoIterable (
61- ( ) => singleToArray ( attachmentForScreenReaderMiddlewareFromProps ) ,
60+ const attachmentForScreenReaderMiddleware = useMemoIterable <
61+ readonly AttachmentForScreenReaderMiddleware [ ] | undefined
62+ > (
63+ ( ) =>
64+ attachmentForScreenReaderMiddlewareFromProps ?. length
65+ ? singleToArray ( attachmentForScreenReaderMiddlewareFromProps )
66+ : undefined ,
6267 [ attachmentForScreenReaderMiddlewareFromProps ]
6368 ) ;
6469
65- const attachmentMiddleware = useMemoIterable (
66- ( ) => singleToArray ( attachmentMiddlewareFromProps ) ,
70+ const attachmentMiddleware = useMemoIterable < readonly AttachmentMiddleware [ ] | undefined > (
71+ ( ) => ( attachmentMiddlewareFromProps ?. length ? singleToArray ( attachmentMiddlewareFromProps ) : undefined ) ,
6772 [ attachmentMiddlewareFromProps ]
6873 ) ;
6974
You can’t perform that action at this time.
0 commit comments