Uncaught TypeError: Cannot read property 오류

카테고리별 장소 검색하기를 소스를 그대로 넣었는데 mask:240 Uncaught TypeError: Cannot read property ‘children’ of null at addCategoryClickEvent 오류가 납니다 맵은 잘 작동합니다 라이브러리도 추가했는데 어떻게 해결해야하나요
화면 캡처 2020-11-24 230221
화면 캡처 2020-11-24 230300

해결했습니당