|
2046 | 2046 | import { mapActions, mapState } from 'pinia'
|
2047 | 2047 | import ConfigApis from '@/apis/ConfigApis'
|
2048 | 2048 | import { parse } from 'native-url'
|
2049 |
| -import { wait, copy, isUndef, deepEqual } from '../lib/utils' |
| 2049 | +import { wait, copy, isUndef, safeDeepEqual } from '../lib/utils' |
2050 | 2050 | import { rfRegions, znifferRegions } from '../lib/items'
|
2051 | 2051 | import cronstrue from 'cronstrue'
|
2052 | 2052 | import useBaseStore from '../stores/base'
|
@@ -2098,12 +2098,12 @@ export default {
|
2098 | 2098 | },
|
2099 | 2099 | },
|
2100 | 2100 | settingsChanged() {
|
2101 |
| - if (!deepEqual(this.newMqtt, this.mqtt)) return true |
2102 |
| - if (!deepEqual(this.newGateway, this.gateway)) return true |
2103 |
| - if (!deepEqual(this.newZwave, this.zwave)) return true |
2104 |
| - if (!deepEqual(this.newBackup, this.backup)) return true |
2105 |
| - if (!deepEqual(this.newZniffer, this.zniffer)) return true |
2106 |
| - if (!deepEqual(this.ui, this.prevUi)) return true |
| 2101 | + if (!safeDeepEqual(this.newMqtt, this.mqtt)) return true |
| 2102 | + if (!safeDeepEqual(this.newGateway, this.gateway)) return true |
| 2103 | + if (!safeDeepEqual(this.newZwave, this.zwave)) return true |
| 2104 | + if (!safeDeepEqual(this.newBackup, this.backup)) return true |
| 2105 | + if (!safeDeepEqual(this.newZniffer, this.zniffer)) return true |
| 2106 | + if (!safeDeepEqual(this.ui, this.prevUi)) return true |
2107 | 2107 |
|
2108 | 2108 | return false
|
2109 | 2109 | },
|
|
0 commit comments