fix(测试用例): 修复脑图保存问题
--bug=1049514 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001049514
This commit is contained in:
parent
ccf932f03b
commit
92bdc8f406
|
@ -578,7 +578,11 @@ public class FunctionalCaseMinderService {
|
|||
if (targetIndex > sources.size()) {
|
||||
beforeNode = sources;
|
||||
afterNode = new ArrayList<>();
|
||||
} else {
|
||||
} else if (targetIndex == 0){
|
||||
beforeNode = new ArrayList<>();
|
||||
afterNode = sources;
|
||||
}
|
||||
else {
|
||||
beforeNode = sources.subList(0, targetIndex - 1);
|
||||
afterNode = sources.subList(targetIndex - 1, sources.size());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue