@kosdev-code/kos-ddk-models 0.1.0-dev.38 → 0.1.0-dev.40

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/index.js CHANGED
@@ -903,7 +903,7 @@ let CarbWaterModelImpl = class {
903
903
  const carbHolder = this.assemblyModel.getHoldersByGroup("carb")[0];
904
904
  const pump = carbHolder.pumps.data[0];
905
905
  const model = kosUiSdk.getKosCompanionModel(pump, kosFreestyleSdk.FcmPump.type);
906
- return model;
906
+ return model ?? carbHolder;
907
907
  }
908
908
  // -------------------LIFECYCLE----------------------------
909
909
  async init() {
@@ -2360,7 +2360,7 @@ let PlainWaterModelImpl = class {
2360
2360
  const waterHolder = this.getHolder();
2361
2361
  const pump = waterHolder?.pumps?.data?.[0];
2362
2362
  const model = kosUiSdk.getKosCompanionModel(pump, kosFreestyleSdk.FcmPump.type);
2363
- return model;
2363
+ return model ?? waterHolder;
2364
2364
  }
2365
2365
  // -------------------LIFECYCLE----------------------------
2366
2366
  async init() {