# Cannot destructure property ‘type’ of ‘t’ as it is undefined

**URL:** <https://community.nocodb.com/t/cannot-destructure-property-type-of-t-as-it-is-undefined/2098>\
**Category:** External Data Source\
**Created:** [October 3, 2025, 7:11am UTC](https://community.nocodb.com/t/cannot-destructure-property-type-of-t-as-it-is-undefined/2098 "2025-10-03T07:11:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joakim](https://avatars.discourse-cdn.com/v4/letter/j/dec6dc/32.png) [@joakim](https://community.nocodb.com/u/joakim)\
**Post date:** [October 3, 2025, 7:11am UTC](https://community.nocodb.com/t/cannot-destructure-property-type-of-t-as-it-is-undefined/2098/1 "2025-10-03T07:11:53Z")

</div>

Hi guys,

I get an error when I try to change the name/description/other properties of a “Link to another record” column. The error is as follows:  
Cannot destructure property ‘type’ of ‘t’ as it is undefined.

When googling this error message, it seems like its a JavaScript error message. Is this an error on NocoDB’s side or something in my setup (using AlloyDB for Postgres in GCP as the external datasource/db).

Thank you!

---

<div class="post-metadata">

**Author:** ![Navi](https://avatars.discourse-cdn.com/v4/letter/n/3be4f8/32.png) [@Navi](https://community.nocodb.com/u/Navi)\
**Post date:** [October 3, 2025, 7:43am UTC](https://community.nocodb.com/t/cannot-destructure-property-type-of-t-as-it-is-undefined/2098/2 "2025-10-03T07:43:19Z")

</div>

We have an internal issue created for this. And the fix should be there EOD or Monday.

Are you using cloud / self hosted ?

---

<div class="post-metadata">

**Author:** ![joakim](https://avatars.discourse-cdn.com/v4/letter/j/dec6dc/32.png) [@joakim](https://community.nocodb.com/u/joakim)\
**Post date:** [October 3, 2025, 8:29am UTC](https://community.nocodb.com/t/cannot-destructure-property-type-of-t-as-it-is-undefined/2098/3 "2025-10-03T08:29:52Z")

</div>

Than you. Self hosted

---

<div class="post-metadata">

**Author:** ![mrwiding](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@mrwiding](https://community.nocodb.com/u/mrwiding)\
**Post date:** [October 22, 2025, 11:10am UTC](https://community.nocodb.com/t/cannot-destructure-property-type-of-t-as-it-is-undefined/2098/4 "2025-10-22T11:10:57Z")

</div>

I’m still getting this error. (Self-Hosted, just installed today)  
”Cannot destructure property ‘type’ of ‘t’ as it is undefined.”

Did a fix for this come out already?

Problem Example:  
I have Posts and Users.  
Posts with Editor and Creator. So in the posts sheet it has two link columns: “users” and “users”, and I’d like to change the name of the columns.

’users’ belongs to ‘users’  
Foreign Key Column: user\_id

---

<div class="post-metadata">

**Author:** ![bryangf](https://avatars.discourse-cdn.com/v4/letter/b/e19adc/32.png) [@bryangf](https://community.nocodb.com/u/bryangf)\
**Post date:** [November 10, 2025, 1:39am UTC](https://community.nocodb.com/t/cannot-destructure-property-type-of-t-as-it-is-undefined/2098/5 "2025-11-10T01:39:24Z")

</div>

Same on my end, I cannot rename “blue” relation fields (Has Many / reverse links) — `Cannot destructure property 'type' of 't'` error.

**Environment**  
• NocoDB v0.265.1  
• Self-hosted on AWS EC2 (Docker)  
• External PostgreSQL database as data source

**Problem**  
When trying to rename the _blue_ relation fields (the reverse/“Has Many” relation icons) NocoDB shows this error:

```auto
Cannot destructure property 'type' of 't' as it is undefined

```

This happens both:

- in the UI (Grid or Form view → column settings → rename), and

- when using the Meta API:

Regular columns and other relation types (one-to-one / belongs-to) update fine.  
Only the **blue “Has Many”** relations trigger this internal error.

**What I tried**

- “Sync with DB” (resync metadata)

- Re-creating relations with “Link existing column”

- PATCH via both `/meta/columns/{id}` and `/meta/tables/{id}/columns/{id}` endpoints

- Verified the same behavior via API and UI

- Not yet modified metadata directly in SQL (avoiding that for now)

**Expected**  
Ability to rename or patch the display title of reverse/“Has Many” relations without error.

**Example**

One of my relation fields shows the table name instead of the column name, and I can’t change its title.

**Notes / Screenshots**

- Running via Docker (`nocodb/nocodb:0.265.1`)

- External PostgreSQL used as main DB, uuid FKs

- 

@Navi Is there a known workaround or temporary fix for this behavior?

---

<div class="post-metadata">

**Author:** ![dstala](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@dstala](https://community.nocodb.com/u/dstala)\
**Post date:** [November 10, 2025, 9:29am UTC](https://community.nocodb.com/t/cannot-destructure-property-type-of-t-as-it-is-undefined/2098/6 "2025-11-10T09:29:58Z")

</div>

Thanks for brining this to our notice. Issue is happening only with external DB tables. Created an issue here to track it further.

> <https://github.com/nocodb/nocodb/issues/12639>
>
> \### Please confirm that the bug report does \*\*\*not\*\*\* already exist
> 
> \- \[x\] I con…firm there is no existing issue for this bug.
> 
> \### Steps to reproduce
> 
> \- Connect to PG Sakila DB
> \- Rename country (BT) field in city table
> \- Cannot destructure property 'type' of 't' as it is undefined.
> \- Request PATCH \`http://localhost:9000/api/v1/db/meta/columns/c7xlaa6ayow43j4\`
> \`\`\`json
> {
> "title": "countryx",
> "description": null,
> "uidt": "LinkToAnotherRecord",
> "custom": {},
> "id": "c7xlaa6ayow43j4",
> "source\_id": "b2vhpuz4htv00yb",
> "base\_id": "pd7vhc9sja6w0yv",
> "fk\_model\_id": "mdyiem7nbywm1dq",
> "column\_name": "countryx",
> "dt": null,
> "np": null,
> "ns": null,
> "clen": null,
> "cop": null,
> "pk": null,
> "pv": null,
> "rqd": null,
> "un": null,
> "ct": null,
> "ai": null,
> "unique": null,
> "cdf": null,
> "cc": null,
> "csn": null,
> "dtx": null,
> "dtxp": null,
> "dtxs": null,
> "au": null,
> "validate": "",
> "virtual": null,
> "deleted": null,
> "system": false,
> "order": 6,
> "created\_at": "2025-11-10 09:24:32+00:00",
> "updated\_at": "2025-11-10 09:24:32+00:00",
> "meta": {
> "defaultViewColOrder": 6,
> "defaultViewColVisibility": true
> },
> "readonly": false,
> "custom\_index\_name": null,
> "colOptions": {
> "virtual": null,
> "id": "l994fgux96bpnjo",
> "ref\_db\_alias": null,
> "type": "bt",
> "db\_type": null,
> "fk\_column\_id": "c7xlaa6ayow43j4",
> "fk\_related\_model\_id": "mr71pffxm29hzek",
> "fk\_child\_column\_id": "cnsrihf0he7xi6q",
> "fk\_parent\_column\_id": "cua26oj6fy7kdjf",
> "fk\_mm\_model\_id": null,
> "fk\_mm\_child\_column\_id": null,
> "fk\_mm\_parent\_column\_id": null,
> "ur": "CASCADE",
> "dr": "RESTRICT",
> "fk\_index\_name": "city\_country\_id\_fkey",
> "deleted": null,
> "created\_at": "2025-11-10 09:24:32+00:00",
> "updated\_at": "2025-11-10 09:24:32+00:00",
> "fk\_target\_view\_id": null,
> "base\_id": "pd7vhc9sja6w0yv",
> "fk\_related\_base\_id": null,
> "fk\_mm\_base\_id": null,
> "fk\_related\_source\_id": null,
> "fk\_mm\_source\_id": null
> },
> "extra": {},
> "childViewId": null,
> "childId": "mr71pffxm29hzek",
> "type": "bt",
> "altered": 8,
> "table\_name": "city"
> }
> \`\`\`
> 
> Original report
> https://community.nocodb.com/t/cannot-destructure-property-type-of-t-as-it-is-undefined/2098/
> 
> \### Desired Behavior
> 
> Rename BT field
> 
> \### Project Details
> 
> 265.1
> 
> \### Attachments
> 
> \_No response\_
