Skip to content

Commit 6729de4

Browse files
committed
fix: hot fix for modal creation
1 parent ca941ae commit 6729de4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

apps/frontend/src/components/new-launch/providers/high.order.provider.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@ import { useLaunchStore } from '@gitroom/frontend/components/new-launch/store';
1515
import { useShallow } from 'zustand/react/shallow';
1616
import { GeneralPreviewComponent } from '@gitroom/frontend/components/launches/general.preview.component';
1717
import { IntegrationContext } from '@gitroom/frontend/components/launches/helpers/use.integration';
18-
import { Button } from '@gitroom/react/form/button';
1918
import { useT } from '@gitroom/react/translation/get.transation.service.client';
2019
import { useFetch } from '@gitroom/helpers/utils/custom.fetch';
2120
import useSWR from 'swr';
2221
import { InternalChannels } from '@gitroom/frontend/components/launches/internal.channels';
23-
import { capitalize } from 'lodash';
24-
import clsx from 'clsx';
2522
import { createPortal } from 'react-dom';
2623

2724
class Empty {
@@ -317,7 +314,7 @@ export const withProvider = function <T extends object>(params: {
317314
!SettingsComponent &&
318315
createPortal(
319316
<style>{`#wrapper-settings {display: none !important;} #social-empty {display: block !important;}`}</style>,
320-
document.querySelector('#social-settings')!
317+
document.querySelector('#social-settings') || document.createElement('div')
321318
)}
322319
</div>
323320
</FormProvider>

0 commit comments

Comments
 (0)