mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-11 23:46:09 +08:00
Remove deep-equal dep, do direct comparison
This commit is contained in:
@@ -99,7 +99,6 @@ THE SOFTWARE.
|
||||
import clone from 'clone';
|
||||
import { diffLines } from 'diff';
|
||||
import escape from 'escape-html';
|
||||
import deepEqual from 'deep-equal';
|
||||
import sha2_256 from 'simple-js-sha2-256';
|
||||
import Header from 'do-vue/src/templates/header';
|
||||
import Footer from 'do-vue/src/templates/footer';
|
||||
@@ -199,7 +198,7 @@ THE SOFTWARE.
|
||||
},
|
||||
checkChange(oldConf) {
|
||||
// If nothing has changed for a tick, we can use the config files
|
||||
if (deepEqual(oldConf, this.confFiles)) {
|
||||
if (oldConf === this.confFiles) {
|
||||
// If this is the initial data load on app start, don't diff and set ourselves as ready
|
||||
if (!this.$data.ready) {
|
||||
this.$data.confFilesOutput = this.confFiles;
|
||||
|
Reference in New Issue
Block a user