Skip to content

Commit

Permalink
Fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Nov 3, 2023
1 parent fd6c280 commit 54bc406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/chat/ChatIframe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function ChatIframe ({
}
grill.addUnreadCountListener(eventListener)

if (document.contains(grill.instances['grill'].iframe)) {
if (document.contains(grill.instances?.['grill']?.iframe)) {
grill.setConfig(config)
} else {
grill.init(config)
Expand Down

0 comments on commit 54bc406

Please sign in to comment.