From 474ba61a5cd7b97c5bc471790d56a917fdc265d6 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 18 Apr 2024 14:36:20 +0300 Subject: [PATCH] Fix create chat modal --- .github/workflows/build-deploy.yml | 6 +++--- src/components/chat/CreateChatModal.tsx | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index e7b510470..21c82a7e8 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -85,10 +85,10 @@ jobs: GH_SELLER_CLIENT_ID=5DYm3Wk4aa1BbfhH1ajmY6MNEELXoicmKRnP4tzHYjSKnD9K GH_SELLER_TOKEN_SIGNER=retire strong pole intact cool music high path salt praise stadium spatial GH_SERVER_MNEMONIC=plunge pumpkin penalty segment cattle more print below fat lemon clap uniform - GH_NEXT_PUBLIC_DATAHUB_QUERY_URL=https://ownership-pallet-data-hub.subsocial.network/graphql - GH_NEXT_PUBLIC_DATAHUB_SUBSCRIPTION_URL=wss://ownership-pallet-data-hub.subsocial.network/graphql-ws + GH_NEXT_PUBLIC_DATAHUB_QUERY_URL=https://ownership-pallet-data-hub-core.subsocial.network/graphql + GH_NEXT_PUBLIC_DATAHUB_SUBSCRIPTION_URL=wss://ownership-pallet-data-hub-core.subsocial.network/graphql-ws GH_NEXT_PUBLIC_APP_ID=12364 - GH_DATAHUB_QUEUE_URL=https://ownership-pallet-queue-data-hub.subsocial.network/graphql + GH_DATAHUB_QUEUE_URL=https://ownership-pallet-queue-data-hub-core.subsocial.network/graphql GH_DATAHUB_QUEUE_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZG1pbiI6dHJ1ZX0.jpXwkIJ4DpV4IvSI3eWVVXE6x89qr_GIq7IlbBv5YE0 # GH_NEXT_PUBLIC_ENABLE_MAINTENANCE_PAGE=true tags: | diff --git a/src/components/chat/CreateChatModal.tsx b/src/components/chat/CreateChatModal.tsx index 553030318..eb2586ae9 100644 --- a/src/components/chat/CreateChatModal.tsx +++ b/src/components/chat/CreateChatModal.tsx @@ -106,9 +106,7 @@ const createModalIfNotExist = () => { let modalIframe = document.getElementById('create-modal-iframe') as HTMLIFrameElement | null if (!modalIframe) { - document.body.appendChild(document.createElement('iframe')) - - const iframe = document.querySelector('iframe') + const iframe = document.body.appendChild(document.createElement('iframe')) if (!iframe) return null