提交 11b8bb53 编写于 作者: X xiayifan 提交者: ph

image问题修复

上级 abc9a741
...@@ -412,7 +412,7 @@ def validate_user_defined_info(user_defined_info): ...@@ -412,7 +412,7 @@ def validate_user_defined_info(user_defined_info):
if not isinstance(user_defined_info, dict): if not isinstance(user_defined_info, dict):
log.error("Invalid user defined info. It should be a dict.") log.error("Invalid user defined info. It should be a dict.")
raise LineageParamTypeError("Invalid user defined info. It should be dict.") raise LineageParamTypeError("Invalid user defined info. It should be dict.")
for key, value in user_defined_info: for key, value in user_defined_info.items():
if not isinstance(key, str): if not isinstance(key, str):
error_msg = "Dict key type {} is not supported in user defined info." \ error_msg = "Dict key type {} is not supported in user defined info." \
"Only str is permitted now.".format(type(key)) "Only str is permitted now.".format(type(key))
......
...@@ -498,8 +498,8 @@ export default { ...@@ -498,8 +498,8 @@ export default {
for (let i = oldTagListLength - 1; i >= 0; i--) { for (let i = oldTagListLength - 1; i >= 0; i--) {
if (!newTagDictionaries[this.tagOperateList[i].label]) { if (!newTagDictionaries[this.tagOperateList[i].label]) {
dataRemoveFlag = true; dataRemoveFlag = true;
this.tagOperateList.splice(i, 1);
delete this.oriDataDictionaries[this.tagOperateList[i].label]; delete this.oriDataDictionaries[this.tagOperateList[i].label];
this.tagOperateList.splice(i, 1);
} }
} }
// Delete the old data from the image list and update the dictionary // Delete the old data from the image list and update the dictionary
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册