@stonecrop/stonecrop 0.9.1 → 0.9.2
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/dist/registry.js +1 -1
- package/dist/stonecrop.js +1 -1
- package/dist/stonecrop.js.map +1 -1
- package/package.json +3 -3
- package/src/registry.ts +1 -1
package/dist/registry.js
CHANGED
|
@@ -51,7 +51,7 @@ export default class Registry {
|
|
|
51
51
|
* @see {@link DoctypeMeta}
|
|
52
52
|
*/
|
|
53
53
|
addDoctype(doctype) {
|
|
54
|
-
if (!(doctype.
|
|
54
|
+
if (!(doctype.slug in this.registry)) {
|
|
55
55
|
this.registry[doctype.slug] = doctype;
|
|
56
56
|
}
|
|
57
57
|
// Register actions (including field triggers) with the field trigger engine
|
package/dist/stonecrop.js
CHANGED
|
@@ -1908,7 +1908,7 @@ class te {
|
|
|
1908
1908
|
* @see {@link DoctypeMeta}
|
|
1909
1909
|
*/
|
|
1910
1910
|
addDoctype(e) {
|
|
1911
|
-
e.
|
|
1911
|
+
e.slug in this.registry || (this.registry[e.slug] = e);
|
|
1912
1912
|
const t = J();
|
|
1913
1913
|
t.registerDoctypeActions(e.doctype, e.actions), e.slug !== e.doctype && t.registerDoctypeActions(e.slug, e.actions), e.component && this.router && !this.router.hasRoute(e.doctype) && this.router.addRoute({
|
|
1914
1914
|
path: `/${e.slug}`,
|