theprogrammablemind_4wp 8.0.0-beta.57 → 8.0.0-beta.58

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/config.js +14 -9
package/package.json CHANGED
@@ -65,6 +65,6 @@
65
65
  "sort-json": "^2.0.0",
66
66
  "uuid": "^8.3.2"
67
67
  },
68
- "version": "8.0.0-beta.57",
68
+ "version": "8.0.0-beta.58",
69
69
  "license": "UNLICENSED"
70
70
  }
package/src/config.js CHANGED
@@ -1202,17 +1202,22 @@ class Config {
1202
1202
  for (let iq = 0; iq < templateQueries.length; ++iq) {
1203
1203
  if (!helpers.safeEquals(templateQueries[iq], instanceQueries[iq])) {
1204
1204
  // if the current and rest are not queries or fragments then treat as not needing rebuild
1205
- let hasQueryOrFragment = false
1206
- for (let rest = iq; rest < templateQueries.length; ++rest) {
1207
- const value = templateQueries[rest]
1208
- if (typeof value == 'string' || (value.query && value.isFragment)) {
1209
- hasQueryOrFragment = true
1210
- break
1211
- }
1212
- }
1213
- if (hasQueryOrFragment) {
1205
+ if (templateQueries.length != instanceQueries.length) {
1214
1206
  sameQueries = false
1215
1207
  startOfChanges = iq
1208
+ } else {
1209
+ let hasQueryOrFragment = false
1210
+ for (let rest = iq; rest < templateQueries.length; ++rest) {
1211
+ const value = templateQueries[rest]
1212
+ if (typeof value == 'string' || (value.query && value.isFragment)) {
1213
+ hasQueryOrFragment = true
1214
+ break
1215
+ }
1216
+ }
1217
+ if (hasQueryOrFragment) {
1218
+ sameQueries = false
1219
+ startOfChanges = iq
1220
+ }
1216
1221
  }
1217
1222
  break;
1218
1223
  }