Fix adding list at mobile view, every list had a sort number 1

- html class list doesn't exist at mobile view. class js-list exists on
  mobile and desktop view
This commit is contained in:
Martin Filser 2021-11-15 15:12:42 +01:00
parent 6d855967fe
commit fa9641ba7b

View file

@ -243,7 +243,7 @@ BlazeComponent.extendComponent({
Lists.insert({
title,
boardId: Session.get('currentBoard'),
sort: $('.list').length,
sort: $('.js-list').length,
type: this.isListTemplatesSwimlane ? 'template-list' : 'list',
swimlaneId: this.currentBoard.isTemplatesBoard()
? this.currentSwimlane._id