mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
Fixed lodash conversion issue with _.rest to _.drop
Solves move down on table of contents
This commit is contained in:
parent
395008d06d
commit
8c2febd636
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ function moveDown(state, pages, current) {
|
|||
|
||||
var startingSequence = 0;
|
||||
var upperSequence = 0;
|
||||
var cutOff = _.rest(pages, downTargetIndex);
|
||||
var cutOff = _.drop(pages, downTargetIndex);
|
||||
var siblings = _.reject(cutOff, function (p) {
|
||||
return p.get('page.level') !== current.get('level') || p.get('page.id') === current.get('id') || p.get('page.id') === downTarget.get('id');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue