Skip to content

Commit

Permalink
Revert "Fix bug with multiple consecutive null"
Browse files Browse the repository at this point in the history
This reverts commit b06f899.
  • Loading branch information
lehecht committed Jan 15, 2024
1 parent b06f899 commit 8beb565
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions resources/assets/js/videos/models/Annotation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -283,14 +283,12 @@ export default Vue.extend({
this.points.splice(index, 1);
// Remove null (gap filler) as first/last element to prevent validation errors
// Multiple consecutive 'null' can occur after removing elements of linked anntations
// in specific order
while (this.frames[0] === null) {
if (this.frames[0] === null) {
this.frames.shift();
this.points.shift();
}
while (this.frames.at(-1) === null) {
if (this.frames.at(-1) === null) {
this.frames.pop();
this.points.pop();
}
Expand Down

0 comments on commit 8beb565

Please sign in to comment.