Cannot call get with undefined key / Post.get is not a function

On my local machine I am using the latest version of Discourse. When I attempt to add a reply within a topic, I get the following error message:

The post.get error occurs in this bit of code:

I did a console.log(post) to see what it contained and the result was an object that has a post number of (...) . EDIT: Clicking on (…) yielded 1.

Additionally, when I try to add a New Topic (within the pipeline or in a topic), I get the error:

Would anyone know how to rectify this? Thanks!

Are you sure post is an Ember object? Have you tried post.post_number?

Isolated it down to something in two of our plugins, both of which reopen the composer controller.

로컬 개발 환경에서 플러그인을 작업 중인데, composer와 관련하여 비슷한 이상한 동작이 발생합니다.

로컬 discourse 인스턴스에서는 새 주제 만들기(create topic) 버튼이 정상적으로 작동하지만, 다른 위치에 새 주제 만들기 버튼을 추가하려고 하면(그렇게 동작하도록 일부 코드를 추가하면) 문제가 발생하여 (로컬) 사이트 전체의 새 주제 만들기 버튼이 모두 작동하지 않게 됩니다.

그리고 다음과 같은 오류가 발생합니다:

Uncaught Error: Assertion Failed: The key provided to set must be a string or number, you passed undefined

오류를 처음 유발한 것으로 보이는 추가 코드를 제거해도 이 오류는 계속됩니다. 즉, 한 번 이 오류가 발생하면 모든 코드를 이전 상태로 되돌려도 새 주제 만들기 버튼을 누를 때마다 계속 오류가 나옵니다.

오류가 사라지는 유일한 방법은, 새로운 코드가 있던 파일을 완전히 삭제하는 것인 것 같습니다. (즉, 파일이 없는 상태에서는 문제가 없지만, 파일은 존재하되 코드 내용이 비어 있는 상태에서는 오류가 계속됩니다.)

이 문제에 대해 아는 분이 있을까요? 제 개발에 큰 장애 요인이 되고 있습니다.