File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
apps/frontend/src/components/new-launch/providers Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,10 @@ import { useLaunchStore } from '@gitroom/frontend/components/new-launch/store';
1515import { useShallow } from 'zustand/react/shallow' ;
1616import { GeneralPreviewComponent } from '@gitroom/frontend/components/launches/general.preview.component' ;
1717import { IntegrationContext } from '@gitroom/frontend/components/launches/helpers/use.integration' ;
18- import { Button } from '@gitroom/react/form/button' ;
1918import { useT } from '@gitroom/react/translation/get.transation.service.client' ;
2019import { useFetch } from '@gitroom/helpers/utils/custom.fetch' ;
2120import useSWR from 'swr' ;
2221import { InternalChannels } from '@gitroom/frontend/components/launches/internal.channels' ;
23- import { capitalize } from 'lodash' ;
24- import clsx from 'clsx' ;
2522import { createPortal } from 'react-dom' ;
2623
2724class 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 >
You can’t perform that action at this time.
0 commit comments