From 35bba2dea0546360e50259220c413f198bedd29e Mon Sep 17 00:00:00 2001 From: Robert Strouse Date: Thu, 16 Mar 2023 10:16:20 -0700 Subject: [PATCH] Fixed circular reference for equipment id verification of pumps. #703 --- controller/Equipment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/Equipment.ts b/controller/Equipment.ts index 1e4d00fe..40fb6912 100644 --- a/controller/Equipment.ts +++ b/controller/Equipment.ts @@ -1398,7 +1398,7 @@ export class PumpCollection extends EqItemCollection { if (typeof add !== 'undefined' && add) return this.add(data || { id: this.data.length + 1, address: address }); return this.createItem(data || { id: this.data.length + 1, address: address }); } - public getNextEquipmentId(range?: EquipmentIdRange, exclude?: number[]): number { return this.getNextEquipmentId(typeof range === 'undefined' ? sys.board.equipmentIds.pumps : range, exclude); } + public getNextEquipmentId(range?: EquipmentIdRange, exclude?: number[]): number { return super.getNextEquipmentId(typeof range === 'undefined' ? sys.board.equipmentIds.pumps : range, exclude); } } export class Pump extends EqItem { public dataName = 'pumpConfig';