# 모달 서비스를 통해 표시할 때 GJS 구성 요소가 "undefined helper" 오류로 실패합니다 (Discourse 3.5.0)

**URL:** https://meta.discourse.org/t/gjs-component-fails-with-undefined-helper-error-when-shown-via-modal-service-discourse-3-5-0/362272
**Category:** Development
**Created:** [4월 17, 2025, 7:04오전 UTC](https://meta.discourse.org/t/gjs-component-fails-with-undefined-helper-error-when-shown-via-modal-service-discourse-3-5-0/362272 "2025-04-17T07:04:42Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![SubStrider](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/substrider/32/512604_2.png) [@SubStrider](https://meta.discourse.org/u/SubStrider)
#### Post date: [4월 17, 2025, 5:21오후 UTC](https://meta.discourse.org/t/gjs-component-fails-with-undefined-helper-error-when-shown-via-modal-service-discourse-3-5-0/362272/3 "2025-04-17T17:21:14Z")

</div>

> [@Arkshine](#):
>
> 이 에러를 재현하는 간단한 GitHub TC를 만들어 주실 수 있을까요?

확인해 주셔서 감사합니다. 확인을 받은 후 새 플러그인으로 GitHub TC를 설정해보려다가 결국 문제를 직접 분리해냈습니다.

모달 템플릿 내부의 컴포넌트 인자(`@icon={{if...}}`)에서 `if` 헬퍼를 사용할 때 발생했습니다. 이 특정 사용법을 제거하면 모달이 정상적으로 렌더링됩니다.

제가 하려던 것은 `@icon={{if this.isSubmitting "spinner"}}` 이었습니다.

참고로 이 새로운 Horizon 테마가 정말 마음에 듭니다.

---

_[View the full topic](https://meta.discourse.org/t/gjs-component-fails-with-undefined-helper-error-when-shown-via-modal-service-discourse-3-5-0/362272)._
