mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-20 23:33:45 +02:00
Import only the needed things from lodash
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import _ from 'lodash';
|
||||
import isObject from 'lodash/isObject';
|
||||
import { mapState, mapActions } from 'vuex';
|
||||
|
||||
export default {
|
||||
@@ -62,7 +62,7 @@
|
||||
}
|
||||
|
||||
const response = error.response;
|
||||
if (response.data && _.isObject(response.data.errors)) {
|
||||
if (response.data && isObject(response.data.errors)) {
|
||||
response.data.errors.forEach(e => {
|
||||
this.error(e.detail);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user