File tree Expand file tree Collapse file tree 3 files changed +15
-11
lines changed Expand file tree Collapse file tree 3 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 9
9
/.idea
10
10
/core /coverage.out
11
11
/app /coverage
12
- openapitools.json
12
+ openapitools.json
13
+ /core /openapitools.json
Original file line number Diff line number Diff line change 2
2
** /* .log
3
3
Dockerfile
4
4
.git
5
- .gitignore
5
+ .gitignore
6
+ openapitools.json
Original file line number Diff line number Diff line change @@ -44,15 +44,17 @@ export const Home = () => {
44
44
const dispatch = useAppDispatch ( ) ;
45
45
46
46
useEffect ( ( ) => {
47
- const currentProjectDetails : string = getCurrentProjectDetails ( ) ;
48
- if ( currentProjectDetails ) {
49
- const userNameAndProjectAndVersion = currentProjectDetails . split ( "###" ) ;
50
- const getProjectRequest : GetProjectRequest = {
51
- id : userNameAndProjectAndVersion [ 1 ]
52
- } ;
53
- dispatch ( existsProjectAsync ( getProjectRequest ) ) ;
54
- const getCurrentProjectContext : GetCurrentContextRequest = { } ;
55
- dispatch ( getCurrentContextAsync ( getCurrentProjectContext ) ) ;
47
+ if ( authData . login ) {
48
+ const currentProjectDetails : string = getCurrentProjectDetails ( ) ;
49
+ if ( currentProjectDetails ) {
50
+ const userNameAndProjectAndVersion = currentProjectDetails . split ( "###" ) ;
51
+ const getProjectRequest : GetProjectRequest = {
52
+ id : userNameAndProjectAndVersion [ 1 ]
53
+ } ;
54
+ dispatch ( existsProjectAsync ( getProjectRequest ) ) ;
55
+ const getCurrentProjectContext : GetCurrentContextRequest = { } ;
56
+ dispatch ( getCurrentContextAsync ( getCurrentProjectContext ) ) ;
57
+ }
56
58
}
57
59
} , [ dispatch ] ) ;
58
60
You can’t perform that action at this time.
0 commit comments