Skip to content

Commit e89989e

Browse files
aadesh18N2D4
andauthored
Apply suggestion from @N2D4
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
1 parent 805a78f commit e89989e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/dashboard/src/components/commands/create-dashboard/dashboard-sandbox-host.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ export const DashboardSandboxHost = memo(function DashboardSandboxHost({
429429
if (typeof event.data !== "object" || event.data === null) {
430430
return;
431431
}
432-
if (iframeRef.current?.contentWindow && event.source !== iframeRef.current.contentWindow) {
432+
if (!iframeRef.current?.contentWindow || event.source !== iframeRef.current.contentWindow) {
433433
return;
434434
}
435435
if (event.origin !== "null") {

0 commit comments

Comments
 (0)