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.
- package/package.json +1 -1
- package/src/config.js +14 -9
package/package.json
CHANGED
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
|
-
|
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
|
}
|