Browse Source

Merge pull request #567 from visuddhinanda/master

:bug: term删除过多
visuddhinanda 4 years ago
parent
commit
b050d457df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/term/term_edit_dlg.js

+ 1 - 1
app/term/term_edit_dlg.js

@@ -151,7 +151,7 @@ function term_edit_dlg_save() {
 				for (let index = 0; index < arrMyTerm.length; index++) {
 					const element = arrMyTerm[index];
 					if(element.guid==result.data.guid){
-						arrMyTerm.splice(index);
+						arrMyTerm.splice(index,1);
 						break;
 					}
 				}