added reset of activeShapeType (#4517)

main
Kirill Lakhov 4 years ago committed by GitHub
parent 2fb2a6a9ef
commit 21251b5b79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,4 @@
// Copyright (C) 2020-2021 Intel Corporation // Copyright (C) 2020-2022 Intel Corporation
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
@ -32,7 +32,11 @@ function mapDispatchToProps(dispatch: any): DispatchToProps {
dispatch(createAnnotationsAsync(sessionInstance, frame, states)); dispatch(createAnnotationsAsync(sessionInstance, frame, states));
}, },
onRememberObject(labelID: number): void { onRememberObject(labelID: number): void {
dispatch(rememberObject({ activeObjectType: ObjectType.TAG, activeLabelID: labelID })); dispatch(rememberObject({
activeObjectType: ObjectType.TAG,
activeLabelID: labelID,
activeShapeType: undefined,
}));
}, },
}; };
} }

Loading…
Cancel
Save