# Model in Topic title connector is undefined - Ctrl+enter to save topic title edits

**URL:** https://meta.discourse.org/t/model-in-topic-title-connector-is-undefined-ctrl-enter-to-save-topic-title-edits/65857
**Category:** Development
**Created:** [8 Julio, 2017 12:06 UTC](https://meta.discourse.org/t/model-in-topic-title-connector-is-undefined-ctrl-enter-to-save-topic-title-edits/65857 "2017-07-08T12:06:39Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![net\_deamon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/net_deamon/32/70126_2.png) [@net\_deamon](https://meta.discourse.org/u/net_deamon)
#### Post date: [8 Julio, 2017 12:06 UTC](https://meta.discourse.org/t/model-in-topic-title-connector-is-undefined-ctrl-enter-to-save-topic-title-edits/65857/1 "2017-07-08T12:06:40Z")

</div>

[https://github.com/discourse/discourse/commit/df213639f15e6e2df3de59a025145da77f503abd](https://github.com/discourse/discourse/commit/df213639f15e6e2df3de59a025145da77f503abd)

Earlier, in the `topic-title` connector, the model variable used to be set which had the details for the topic.  
But now the `model` is undefined.

So I went through the commits made for topic-title.hbs file, and I tried removing/adding the commit to understand the changes.

Here is the screenshot of the `model` in the topic-title connector.

Here is the `model` present in the `topic-title.hbs connector` before this commit (df213639f15e6e2df3de59a025145da77f503abd)

 ![](https://global.discourse-cdn.com/meta/original/3X/6/b/6b3bc159b6405ed6bd88685327499be3b65da066.png)

After this commit, the model object is undefined

So I want to understand the changes, is there any different way now we have to use the connector and the model present in it. I tried searching in github and meta, but I couldn’t figure out myself.

---

<div class="post-metadata">

### Author: ![net\_deamon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/net_deamon/32/70126_2.png) [@net\_deamon](https://meta.discourse.org/u/net_deamon)
#### Post date: [8 Julio, 2017 13:33 UTC](https://meta.discourse.org/t/model-in-topic-title-connector-is-undefined-ctrl-enter-to-save-topic-title-edits/65857/2 "2017-07-08T13:33:09Z")

</div>

I solved the issue by using the connector `topic-above-posts` instead of `topic-title`.  
But I am still not sure why did the `topic-title` stopped working… I saw the changes in the git, where the topic.hbs was broken into several components… still it didnt make me understand why would it not work as before.

---

<div class="post-metadata">

### Author: ![net\_deamon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/net_deamon/32/70126_2.png) [@net\_deamon](https://meta.discourse.org/u/net_deamon)
#### Post date: [11 Julio, 2017 15:16 UTC](https://meta.discourse.org/t/model-in-topic-title-connector-is-undefined-ctrl-enter-to-save-topic-title-edits/65857/3 "2017-07-11T15:16:31Z")

</div>

Hi @eviltrout,  
Do you think this is a bug, or am I doing something wrong?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [11 Julio, 2017 15:20 UTC](https://meta.discourse.org/t/model-in-topic-title-connector-is-undefined-ctrl-enter-to-save-topic-title-edits/65857/4 "2017-07-11T15:20:24Z")

</div>

It does look like a bug to me. Try the following commit. I think it will fix it:

[https://github.com/discourse/discourse/commit/1163c086a3e8af3de04c94b0f4c5d432e9bd44bd](https://github.com/discourse/discourse/commit/1163c086a3e8af3de04c94b0f4c5d432e9bd44bd)

---

<div class="post-metadata">

### Author: ![net\_deamon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/net_deamon/32/70126_2.png) [@net\_deamon](https://meta.discourse.org/u/net_deamon)
#### Post date: [11 Julio, 2017 16:03 UTC](https://meta.discourse.org/t/model-in-topic-title-connector-is-undefined-ctrl-enter-to-save-topic-title-edits/65857/5 "2017-07-11T16:03:57Z")

</div>

Hi thanks for the commit, its working now 🙂

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [11 Julio, 2017 16:32 UTC](https://meta.discourse.org/t/model-in-topic-title-connector-is-undefined-ctrl-enter-to-save-topic-title-edits/65857/6 "2017-07-11T16:32:55Z")

</div>


