Skip to content

Commit

Permalink
Updated version & changelog, added minor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Sekachev committed Feb 15, 2021
1 parent 0e3466e commit 302256a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Bumped nuclio version to 1.5.16
- All methods for interative segmentation accept negative points as well
- Persistent queue added to logstash (<https://github.com/openvinotoolkit/cvat/pull/2744>)
- Improved maintanance of popups visibility (<https://github.com/openvinotoolkit/cvat/pull/2809>)

### Deprecated

Expand Down
2 changes: 1 addition & 1 deletion cvat-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cvat-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cvat-ui",
"version": "1.14.2",
"version": "1.14.3",
"description": "CVAT single-page application",
"main": "src/index.tsx",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ function useCurrentActivePopover(): string | null {

useEffect(() => {
const listener: PopoverTypeListener = (newActivePopover: string | null) => {
// updating the state leads to rerender of dependent components
setActivePopover(newActivePopover);
};

// subscribe on mount and unsubscribe on unmount
subscribePopoverUpdate(listener);

return () => unsubscribePopoverUpdate(listener);
});
}, []);

return activePopover;
}
Expand Down

0 comments on commit 302256a

Please sign in to comment.