Feature/#310 사이드바 현재 보고 있지 않은 팀 이름이 주황색으로 표시되는 버그 수정 #311
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
관련 이슈
작업 요약
작업 상세 설명
teamId
가 1과 12처럼 숫자가 비슷한 경우에만 발생했는데, 그 원인은currentPath.includes(teamPath)
때문이었습니다.includes
메서드는 부분 문자열만 일치해도true
를 반환하기 때문에,/team/1
경로가/team/12
와도 일치한다고 잘못 인식된 것입니다.includes
대신startsWith
를 사용하여 경로가 정확히 일치하는지 확인하도록 변경했습니다.리뷰 요구 사항