remain auto label state while no label data (#727)
This commit is contained in:
Родитель
ba8c1100e9
Коммит
a79d556a39
|
@ -553,7 +553,9 @@ export default class EditorPage extends React.Component<IEditorPageProps, IEdito
|
|||
|
||||
const asset = { ...assetMetadata.asset };
|
||||
|
||||
if (this.isTaggableAssetType(asset)&&asset.state!==AssetState.Tagged) {
|
||||
if (this.isTaggableAssetType(asset)
|
||||
&& asset.labelingState !== AssetLabelingState.AutoLabeled
|
||||
&& asset.labelingState !== AssetLabelingState.AutoLabeledAndAdjusted) {
|
||||
asset.state = _.get(assetMetadata, "labelData.labels.length", 0) > 0
|
||||
&& assetMetadata.labelData.labels.findIndex(item=>item.value?.length>0)>=0 ?
|
||||
AssetState.Tagged :
|
||||
|
|
Загрузка…
Ссылка в новой задаче