fix(测试用例): 修复脑图保存问题

--bug=1049514 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001049514
This commit is contained in:
guoyuqi 2024-11-26 13:38:33 +08:00 committed by Craftsman
parent ccf932f03b
commit 92bdc8f406
1 changed files with 5 additions and 1 deletions

View File

@ -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());
}