bugfix - ibp删除组合错误
This commit is contained in:
parent
112223b150
commit
a9ddb014a5
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user