|
@@ -97,8 +97,10 @@ export default (state=init,action)=>{
|
|
});
|
|
});
|
|
return subInx!=-1;
|
|
return subInx!=-1;
|
|
});
|
|
});
|
|
- const trueInx = res.wholeIndexs[inx].findIndex((i)=>i==subInx);
|
|
|
|
- res.wholeIndexs[inx].splice(trueInx,1);
|
|
|
|
|
|
+ if(inx!=-1){
|
|
|
|
+ const trueInx = inx!=-1&&res.wholeIndexs[inx].findIndex((i)=>i==subInx);
|
|
|
|
+ res.wholeIndexs[inx].splice(trueInx,1);
|
|
|
|
+ }
|
|
}else{
|
|
}else{
|
|
res.addedScaleIds.push(action.id);
|
|
res.addedScaleIds.push(action.id);
|
|
}
|
|
}
|