We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 805a78f commit e89989eCopy full SHA for e89989e
1 file changed
apps/dashboard/src/components/commands/create-dashboard/dashboard-sandbox-host.tsx
@@ -429,7 +429,7 @@ export const DashboardSandboxHost = memo(function DashboardSandboxHost({
429
if (typeof event.data !== "object" || event.data === null) {
430
return;
431
}
432
- if (iframeRef.current?.contentWindow && event.source !== iframeRef.current.contentWindow) {
+ if (!iframeRef.current?.contentWindow || event.source !== iframeRef.current.contentWindow) {
433
434
435
if (event.origin !== "null") {
0 commit comments