Skip to content

Commit 093af58

Browse files
committed
fix undefined webview props
1 parent 4ef2c67 commit 093af58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/YoutubeIframe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ const YoutubeIframe = (props, ref) => {
193193
onMessage={onWebMessage}
194194
source={{
195195
// partially allow source to be overridden
196-
...webViewProps.source,
196+
...webViewProps?.source,
197197
method: 'GET',
198198
html: MAIN_SCRIPT(
199199
videoId,

0 commit comments

Comments
 (0)