From f7e0d2cbb4f9bed983e6664c092f63306d30e06c Mon Sep 17 00:00:00 2001 From: yshepilov Date: Sat, 4 Apr 2020 22:37:52 +0200 Subject: [PATCH] #282 removed full lodash import --- web-src/src/main-app/store/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web-src/src/main-app/store/index.js b/web-src/src/main-app/store/index.js index 58fe6dbd..966055d2 100644 --- a/web-src/src/main-app/store/index.js +++ b/web-src/src/main-app/store/index.js @@ -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'; @@ -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;