You've already forked DataMate
refactor(annotation): 移除编辑器标签配置装饰逻辑
- 删除了 _decorate_label_config_for_editor 方法调用 - 简化了标签配置获取流程 - 移除了不必要的条件检查逻辑
This commit is contained in:
@@ -166,8 +166,6 @@ class AnnotationEditorService:
|
|||||||
label_config = project.configuration.get("label_config")
|
label_config = project.configuration.get("label_config")
|
||||||
if not label_config:
|
if not label_config:
|
||||||
label_config = await self._get_label_config(project.template_id)
|
label_config = await self._get_label_config(project.template_id)
|
||||||
if label_config:
|
|
||||||
label_config = self._decorate_label_config_for_editor(label_config)
|
|
||||||
return label_config
|
return label_config
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user