Skip to content

Commit a544f1f

Browse files
committed
Fixing settings bug and update version to 3.0.4
1 parent 149607a commit a544f1f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "laravel-frontend-file-manager",
3-
"version": "3.0.3",
3+
"version": "3.0.4",
44
"description": "File manager for Laravel",
55
"keywords": [
66
"laravel",

src/http/axios.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ import localstore from '../mixins/localstore';
44
let settings = localstore.getStorage(localstore.axiosSettingType);
55
let obj = {};
66

7-
if(settings.data.baseURL) obj.baseURL = settings.data.baseURL;
8-
if(settings.data.headers) obj.headers = settings.data.headers;
7+
if(settings) {
8+
if(settings.data.baseURL) obj.baseURL = settings.data.baseURL;
9+
if(settings.data.headers) obj.headers = settings.data.headers;
10+
}
911

1012
// set new axios instance
1113
export default axios.create(obj);

0 commit comments

Comments
 (0)