F~ixed extra notifications about frame rejection during navigation (#3373)

main
Andrey Zhavoronkov 5 years ago committed by GitHub
parent 830c7b213e
commit 3aba7254c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,6 @@
{
"name": "cvat-canvas",
"version": "2.4.4",
"version": "2.4.5",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

@ -1,6 +1,6 @@
{
"name": "cvat-canvas",
"version": "2.4.4",
"version": "2.4.5",
"description": "Part of Computer Vision Annotation Tool which presents its canvas library",
"main": "src/canvas.ts",
"scripts": {

@ -421,7 +421,10 @@ export class CanvasModelImpl extends MasterImpl implements CanvasModel {
})
.catch((exception: any): void => {
this.data.exception = exception;
this.notify(UpdateReasons.DATA_FAILED);
// don't notify when the frame is no longer needed
if (typeof exception !== 'number' || exception === this.data.imageID) {
this.notify(UpdateReasons.DATA_FAILED);
}
throw exception;
});
}

Loading…
Cancel
Save