You've already forked DataMate
Compare commits
2 Commits
595a758d05
...
2bc48fd465
| Author | SHA1 | Date | |
|---|---|---|---|
| 2bc48fd465 | |||
| a21a632a4b |
@@ -198,8 +198,14 @@ export default function DatasetDetail() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
fetchDataset();
|
fetchDataset();
|
||||||
filesOperation.fetchFiles("", 1, 10); // 从根目录开始,第一页
|
|
||||||
}, [id]);
|
}, [id]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (dataset?.id) {
|
||||||
|
filesOperation.fetchFiles("", 1, 10); // 从根目录开始,第一页
|
||||||
|
}
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [dataset?.id]);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (dataset?.parentDatasetId && activeTab === "children") {
|
if (dataset?.parentDatasetId && activeTab === "children") {
|
||||||
setActiveTab("overview");
|
setActiveTab("overview");
|
||||||
|
|||||||
@@ -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