bugfix - ibp删除组合错误

This commit is contained in:
Yuan 2023-10-17 15:30:46 +08:00
parent 112223b150
commit a9ddb014a5

View File

@ -235,8 +235,8 @@ export function editIbpRelateDevice(
export function deleteIbpRelateDevice(row: RelateDevicelistItem) { export function deleteIbpRelateDevice(row: RelateDevicelistItem) {
for (let i = 0; i < ibpRelatedDeviceList.length; i++) { for (let i = 0; i < ibpRelatedDeviceList.length; i++) {
if ( if (
ibpRelatedDeviceList[i].combinationtypes.map((c) => c.code) == ibpRelatedDeviceList[i].combinationtypes.map((c) => c.code).join('') ===
row.combinationtypes.map((c) => c.code) row.combinationtypes.map((c) => c.code).join('')
) { ) {
ibpRelatedDeviceList.splice(i, 1); ibpRelatedDeviceList.splice(i, 1);
break; break;