theprogrammablemind_4wp 9.3.0-beta.34 → 9.3.0-beta.36
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.
- package/package.json +1 -1
- package/src/config.js +9 -2
package/package.json
CHANGED
package/src/config.js
CHANGED
@@ -1540,8 +1540,14 @@ class Config {
|
|
1540
1540
|
}
|
1541
1541
|
|
1542
1542
|
removeSemantic (deleteSemantic) {
|
1543
|
-
|
1544
|
-
|
1543
|
+
if (!Array.isArray(deleteSemantic)) {
|
1544
|
+
deleteSemantic = [deleteSemantic]
|
1545
|
+
}
|
1546
|
+
const todo = []
|
1547
|
+
for (const ds of deleteSemantic) {
|
1548
|
+
const id = ds.id || ds
|
1549
|
+
todo.push(id)
|
1550
|
+
}
|
1545
1551
|
const seen = new Set()
|
1546
1552
|
|
1547
1553
|
while (todo.length > 0) {
|
@@ -1554,6 +1560,7 @@ class Config {
|
|
1554
1560
|
if (index === -1) {
|
1555
1561
|
continue
|
1556
1562
|
}
|
1563
|
+
// TODO change to tiedIs(s)
|
1557
1564
|
for (const tied_id of this.config.semantics[index].tied_ids || []) {
|
1558
1565
|
if (!seen.has(tied_id)) {
|
1559
1566
|
todo.push(tied_id)
|