# Table Builder Component broken?

**URL:** <https://meta.discourse.org/t/table-builder-component-broken/262491>\
**Category:** Bug\
**Tags:** table-builder\
**Created:** [April 21, 2023, 9:03am UTC](https://meta.discourse.org/t/table-builder-component-broken/262491 "2023-04-21T09:03:22Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [April 25, 2023, 3:08pm UTC](https://meta.discourse.org/t/table-builder-component-broken/262491/13 "2023-04-25T15:08:03Z")

</div>

This has been merged now. 👍

> <https://github.com/discourse/discourse-table-builder/pull/50>
>
> We were relying on the \`event.target\`, and sometimes that target was not the but…ton element with the \`table-id\` data attribute, but the svg. 
> 
> This PR makes a few changes: 
> 
> \- renames \`tableId\` to \`tableIndex\`
> \- passes the index as part of the attributes to the \`generateModal\` function

---

_[View the full topic](https://meta.discourse.org/t/table-builder-component-broken/262491)._
