소스 검색

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
Martin Filser 3 년 전
부모
커밋
fa9641ba7b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      client/components/swimlanes/swimlanes.js

+ 1 - 1
client/components/swimlanes/swimlanes.js

@@ -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