Skip to content

Commit 8b6a96d

Browse files
bookernathCopilot
andauthored
Update core/components/scripts/scripts.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e3ec825 commit 8b6a96d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

core/components/scripts/scripts.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ export const ScriptManagerScripts = ({ scripts, strategy }: ScriptRendererProps)
4949

5050
scriptProps.id = `bc-script-${script.entityId}`;
5151

52+
if (!scriptProps.src && !scriptProps.dangerouslySetInnerHTML) {
53+
return null;
54+
}
5255
return <Script key={scriptProps.id} {...scriptProps} />;
5356
})}
5457
</>

0 commit comments

Comments
 (0)