File tree Expand file tree Collapse file tree 3 files changed +1
-9
lines changed Expand file tree Collapse file tree 3 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ import ReactDOM from "react-dom";
3
3
import { BrowserRouter as Router } from "react-router-dom" ;
4
4
import App from "./App" ;
5
5
import "@fortawesome/fontawesome-free/css/all.css" ;
6
- //import "primereact/resources/themes/nova-light/theme.css";
7
- //import "primereact/resources/primereact.min.css";
8
- //import "primeicons/primeicons.css";
9
- //import "primeflex/primeflex.css";
10
6
//import "bootstrap/dist/css/bootstrap.min.css";
11
7
import "./bootswatch.min.css" ;
12
8
import 'bootstrap/dist/js/bootstrap.bundle.min' ;
Original file line number Diff line number Diff line change @@ -27,10 +27,6 @@ const Links : React.FC<LinksProps> = (props ) => {
27
27
let tag = queryParams . get ( 'tag' ) || "" ;
28
28
let query = queryParams . get ( 'query' ) || "" ;
29
29
30
- //console.log("page:", page)
31
- //console.log("query:", query)
32
- //console.log("tag:", tag)
33
-
34
30
const initialValue : LinksModel = {
35
31
hasNext : false ,
36
32
hasPrevious : false ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ instance.defaults.baseURL = apiUrl;
10
10
11
11
instance . interceptors . request . use ( function ( config ) {
12
12
const accessToken = getAccessToken ( ) ;
13
- if ( ! config . headers . Authorization && accessToken ) {
13
+ if ( config . headers !== undefined && ! config . headers . Authorization && accessToken ) {
14
14
config . headers . Authorization = `Bearer ${ accessToken } ` ;
15
15
}
16
16
return config ;
You can’t perform that action at this time.
0 commit comments