File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -17,28 +17,23 @@ import { FNDashboardProps } from './types';
17
17
type FnAppProviderProps = Pick < FNDashboardProps , 'fnError' > ;
18
18
19
19
export const FnAppProvider : FC < PropsWithChildren < FnAppProviderProps > > = ( props ) => {
20
- const { children, fnError = null } = props ;
20
+ const { children } = props ;
21
21
22
22
const [ ready , setReady ] = useState ( false ) ;
23
23
navigationLogger ( 'AppWrapper' , false , 'rendering' ) ;
24
24
useEffect ( ( ) => {
25
25
loadAndInitAngularIfEnabled ( )
26
26
. then ( ( ) => {
27
27
setReady ( true ) ;
28
- // $('.preloader').remove();
29
28
} )
30
29
. catch ( ( err ) => console . error ( err ) ) ;
31
30
return ( ) => { } ;
32
31
} , [ ] ) ;
33
32
34
- if ( ! ready ) {
33
+ if ( ! store || ! ready ) {
35
34
return < FnLoader /> ;
36
35
}
37
36
38
- if ( ! store ) {
39
- return < > { fnError } </ > ;
40
- }
41
-
42
37
return (
43
38
< Provider store = { store } >
44
39
< BrowserRouter >
You can’t perform that action at this time.
0 commit comments