We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b06f899 commit 8beb565Copy full SHA for 8beb565
resources/assets/js/videos/models/Annotation.vue
@@ -283,14 +283,12 @@ export default Vue.extend({
283
this.points.splice(index, 1);
284
285
// Remove null (gap filler) as first/last element to prevent validation errors
286
- // Multiple consecutive 'null' can occur after removing elements of linked anntations
287
- // in specific order
288
- while (this.frames[0] === null) {
+ if (this.frames[0] === null) {
289
this.frames.shift();
290
this.points.shift();
291
}
292
293
- while (this.frames.at(-1) === null) {
+ if (this.frames.at(-1) === null) {
294
this.frames.pop();
295
this.points.pop();
296
0 commit comments