@kosdev-code/kos-ui-sdk 3.0.33 → 3.0.35

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.
@@ -2683,15 +2683,16 @@ const RegistrationManager = {
2683
2683
  (model) => models.set(model.type, model.registration())
2684
2684
  );
2685
2685
  }
2686
- if (KosCore.getInstance().isReady) {
2687
- if (!KosCore.getInstance().modelManager.registry.models[register.type]) {
2686
+ const liveModels = KosCore.getInstance().modelManager?.registry?.models;
2687
+ if (liveModels) {
2688
+ if (!liveModels[register.type]) {
2688
2689
  log$15.info(
2689
2690
  `Model with type ${register.type} doesn't exist. Adding new registration`
2690
2691
  );
2691
- KosCore.getInstance().modelManager.registry.models[register.type] = register.registration[register.type];
2692
+ liveModels[register.type] = register.registration[register.type];
2692
2693
  if (isKosModelRegistration(registration)) {
2693
2694
  registration.relatedModels.forEach(
2694
- (model) => KosCore.getInstance().modelManager.registry.models[model.type] = model.registration().registration
2695
+ (model) => liveModels[model.type] = model.registration().registration[model.type]
2695
2696
  );
2696
2697
  }
2697
2698
  }
@@ -25412,4 +25413,4 @@ export {
25412
25413
  StateBean as y,
25413
25414
  getStateProps as z
25414
25415
  };
25415
- //# sourceMappingURL=software-info-registration-dW2ssLDY.js.map
25416
+ //# sourceMappingURL=software-info-registration-Co9Wq_-n.js.map