theprogrammablemind_4wp 8.0.0-beta.27 → 8.0.0-beta.29
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 +2 -2
package/package.json
CHANGED
package/src/config.js
CHANGED
@@ -2857,8 +2857,8 @@ class Config {
|
|
2857
2857
|
const mores = []
|
2858
2858
|
for (const createConfig of createConfigs) {
|
2859
2859
|
const more = await createConfig()
|
2860
|
-
if (
|
2861
|
-
throw new Error(
|
2860
|
+
if (this.name && this.name == more.name) {
|
2861
|
+
throw new Error('Cannot add an object to itself for argument number ${index+1}.')
|
2862
2862
|
}
|
2863
2863
|
if (this === more) {
|
2864
2864
|
throw new Error('Cannot add an object to itself.')
|