Removed lodash from js dependencies

This commit is contained in:
Michael Mayer 2018-09-19 07:44:19 +02:00
parent ce5869d213
commit 3203c71953
2 changed files with 2 additions and 4 deletions

View file

@ -55,7 +55,6 @@
"karma-phantomjs-launcher": "^1.0.4", "karma-phantomjs-launcher": "^1.0.4",
"karma-webdriver-launcher": "^1.0.5", "karma-webdriver-launcher": "^1.0.5",
"karma-webpack": "^2.0.3", "karma-webpack": "^2.0.3",
"lodash": "^4.17.10",
"material-design-icons-iconfont": "^3.0.3", "material-design-icons-iconfont": "^3.0.3",
"mocha": "^3.3.0", "mocha": "^3.3.0",
"node-sass": "^4.9.2", "node-sass": "^4.9.2",

View file

@ -193,7 +193,6 @@
<script> <script>
import Photo from 'model/photo'; import Photo from 'model/photo';
import _ from 'lodash/lang';
export default { export default {
name: 'photos', name: 'photos',
@ -333,9 +332,9 @@
}, },
refreshList() { refreshList() {
this.loadMoreDisabled = true; this.loadMoreDisabled = true;
console.log('QUERY', this.lastQuery, this.query);
// Don't query the same data more than once // Don't query the same data more than once
if (_.isEqual(this.lastQuery, this.query)) return; if (JSON.stringify(this.lastQuery) === JSON.stringify(this.query)) return;
Object.assign(this.lastQuery, this.query); Object.assign(this.lastQuery, this.query);