Browse Source

!29 fix ui image issue of tag selecting

Merge pull request !29 from 潘慧/master_ph
tags/v0.2.0-alpha
mindspore-ci-bot Gitee 5 years ago
parent
commit
15a7ad78bd
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      mindinsight/lineagemgr/common/validator/validate.py
  2. +1
    -1
      mindinsight/ui/src/views/train-manage/image.vue

+ 1
- 1
mindinsight/lineagemgr/common/validator/validate.py View File

@@ -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))


+ 1
- 1
mindinsight/ui/src/views/train-manage/image.vue View File

@@ -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


Loading…
Cancel
Save