@electerm/electerm-react 1.60.46 → 1.60.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
* @param {Array} newArr - New array of objects to compare against
|
|
5
5
|
* @returns {Object} Object containing arrays of items to update, add, and remove
|
|
6
6
|
*/
|
|
7
|
+
|
|
8
|
+
import deepCopy from 'json-deep-copy'
|
|
9
|
+
|
|
7
10
|
export default function compare (oldArr, newArr) {
|
|
8
11
|
if (!oldArr || !newArr) {
|
|
9
12
|
return {
|
|
@@ -48,8 +51,8 @@ export default function compare (oldArr, newArr) {
|
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
53
|
return {
|
|
51
|
-
updated,
|
|
52
|
-
added,
|
|
53
|
-
removed
|
|
54
|
+
updated: deepCopy(updated),
|
|
55
|
+
added: deepCopy(added),
|
|
56
|
+
removed: deepCopy(removed)
|
|
54
57
|
}
|
|
55
58
|
}
|
package/client/store/common.js
CHANGED
|
@@ -193,9 +193,6 @@ export default (Store) => {
|
|
|
193
193
|
})
|
|
194
194
|
ext.lastDataUpdateTime = await getData('lastDataUpdateTime') || 0
|
|
195
195
|
Object.assign(store, ext)
|
|
196
|
-
await store.fixBookmarkGroups()
|
|
197
|
-
await store.fixProfiles()
|
|
198
|
-
|
|
199
196
|
store.checkDefaultTheme()
|
|
200
197
|
store.loadFontList()
|
|
201
198
|
store.fetchItermThemes()
|
|
@@ -203,6 +200,13 @@ export default (Store) => {
|
|
|
203
200
|
store.fetchSshConfigItems()
|
|
204
201
|
store.initCommandLine().catch(store.onError)
|
|
205
202
|
initWatch(store)
|
|
203
|
+
setTimeout(
|
|
204
|
+
() => {
|
|
205
|
+
store.fixProfiles()
|
|
206
|
+
store.fixBookmarkGroups()
|
|
207
|
+
},
|
|
208
|
+
1000
|
|
209
|
+
)
|
|
206
210
|
if (store.config.checkUpdateOnStart) {
|
|
207
211
|
store.onCheckUpdate(false)
|
|
208
212
|
}
|