Skip to content

Commit

Permalink
Fixed uploading annotations #1439
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev committed Apr 21, 2020
1 parent 4ba465d commit 1ae3e6a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cvat-ui/src/actions/annotation-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,10 @@ ThunkAction<Promise<void>, {}, {}, AnyAction> {
},
);

await job.annotations.clear(true);
await job.actions.clear();
const history = await job.actions.get();

// One more update to escape some problems
// in canvas when shape with the same
// clientID has different type (polygon, rectangle) for example
Expand All @@ -370,12 +374,10 @@ ThunkAction<Promise<void>, {}, {}, AnyAction> {
payload: {
job,
states: [],
history,
},
});

await job.annotations.clear(true);
await job.actions.clear();
const history = await job.actions.get();
const states = await job.annotations.get(frame, showAllInterpolationTracks, filters);

setTimeout(() => {
Expand Down

0 comments on commit 1ae3e6a

Please sign in to comment.