fix clip index for newly added clips
This commit is contained in:
parent
5649892bbd
commit
be1589569e
1 changed files with 2 additions and 1 deletions
|
@ -106,8 +106,9 @@ class Edit(models.Model):
|
|||
c = self.add_clip(data)
|
||||
if c:
|
||||
ids.insert(index, c.id)
|
||||
index += 1
|
||||
added.append(c.json(user))
|
||||
added[-1]['index'] = index
|
||||
index += 1
|
||||
else:
|
||||
return False
|
||||
self.sort_clips(ids)
|
||||
|
|
Loading…
Reference in a new issue