Skip to content

Commit

Permalink
#282 removed full lodash import
Browse files Browse the repository at this point in the history
  • Loading branch information
bugy committed Apr 4, 2020
1 parent 5b09a45 commit ac72fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web-src/src/main-app/store/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import historyModule from '@/common/store/executions-module';
import {isNull, logError} from '@/common/utils/common';
import axios from 'axios';
import * as _ from 'lodash';
import get from 'lodash/get';
import Vue from 'vue'
import Vuex from 'vuex'
import authModule from './auth';
Expand Down Expand Up @@ -67,7 +67,7 @@ store.watch((state) => state.scriptConfig.parameters, (parameters) => {
});

axios.interceptors.response.use((response) => response, (error) => {
if (_.get(error, 'response.status') === 401) {
if (get(error, 'response.status') === 401) {
store.dispatch('auth/setAuthenticated', false);
}
throw error;
Expand Down

0 comments on commit ac72fdf

Please sign in to comment.