theprogrammablemind_4wp 9.1.1-beta.20 → 9.1.1-beta.21

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/config.js +5 -1
package/package.json CHANGED
@@ -69,6 +69,6 @@
69
69
  "sort-json": "^2.0.0",
70
70
  "uuid": "^8.3.2"
71
71
  },
72
- "version": "9.1.1-beta.20",
72
+ "version": "9.1.1-beta.21",
73
73
  "license": "UNLICENSED"
74
74
  }
package/src/config.js CHANGED
@@ -2096,7 +2096,11 @@ class Config {
2096
2096
  throw new Error('This is intended to be used to instantiate a new class based on the existing API.')
2097
2097
  } else {
2098
2098
  if (name) {
2099
- return this.getConfig(name)._api
2099
+ if (this.name == name) {
2100
+ return this._api.constructor
2101
+ } else {
2102
+ return this.getConfig(name)._api.constructor
2103
+ }
2100
2104
  } else {
2101
2105
  return this._api.constructor
2102
2106
  }