Skip to content

fix: task 부분의 체크박스/작업 수정/오류 모달/작업 추가 등의 오류 수정#35

Merged
cosmosjeon merged 1 commit into
devfrom
feature/psb
Aug 6, 2025
Merged

fix: task 부분의 체크박스/작업 수정/오류 모달/작업 추가 등의 오류 수정#35
cosmosjeon merged 1 commit into
devfrom
feature/psb

Conversation

@subeeen

@subeeen subeeen commented Aug 6, 2025

Copy link
Copy Markdown
Collaborator

고친 오류 리스트

1. 팀 작업 추가 안됨

  • assignee 체크박스인데 selectedOptions(select 전용) 사용
  • querySelectorAll('input[name="assignee"]:checked') 로 변경해 체크박스 값 가져오게 수정

2. 담당자 표시 안됨

  • 처음 렌더링 시 담당자 표시 로직 없거나 값 null
  • 템플릿에서 {{ task.assignee.first_name|default:task.assignee.username }} / JS 렌더링에서 assignee_name || '미정' 로 처리

3. 작업은 되는데 오류 모달 뜸

  • GET 요청은 200인데 204 조건이 불필요하게 걸려서 false 처리됨
  • if (response.status === 204) 또는 if (response.ok) 중 하나만 사용

4. 작업 수정 시 taskForm undefined 오류

  • editTask 함수 내부에서 taskForm 변수를 못찾음
  • 함수 내부에서 const taskForm = document.getElementById('task-form'); 추가

5.openModal is not defined 오류

  • editTask가 전역에서 호출되는데 그 안에서 쓰는 openModal이 DOMContentLoaded 안에 있어서 접근 불가
  • editTask 함수를 DOMContentLoaded 바깥으로 옮겨서 전역으로 만들고, 그 안에서 openModal 호출 가능하게 처리

6. URL undefined 문제

  • currentTeamId = window.location.pathname.split('/')[3] 구조가 환경에 따라 틀림
  • URL 구조 확인 후 인덱스 조정하거나 data-team-id 방식으로 변경

@cosmosjeon cosmosjeon merged commit e880580 into dev Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants