You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've encountered an issue where editing any record in AdminBro doesn't update the existing record, but actually inserts a new record in the database. So when we edit an item, we duplicate it with the same data (and a new generated ID primary key) instead of editing the existing item. This happens on any of our TypeORM entities, and it still occurs even with the simplified version I've posted below.
No error is printed in the console, and AdminBro displays success in saving the record. I'm using a forked version of admin-bro-typeorm to avoid the problem in issue #5.
To rule out any issue with our versions of AdminBro or our configuration, I set up a basic Sequelize model for this same table and used the AdminBro Sequelize adapter. The issue does not happen there and is only specific to the TypeORM adapter.
Unfortunately, that didn't resolve the issue for my app. I've attempted with both admin-bro 1.6.0 and 1.5.2, and they both exhibit the same issue here.
I also reverted admin-bro-typeorm to 0.1.5, but that produced an entirely different error: invalid input syntax for integer: "undefined"
Hello,
We've encountered an issue where editing any record in AdminBro doesn't update the existing record, but actually inserts a new record in the database. So when we edit an item, we duplicate it with the same data (and a new generated ID primary key) instead of editing the existing item. This happens on any of our TypeORM entities, and it still occurs even with the simplified version I've posted below.
Here is a video demonstrating the issue: https://share.getcloudapp.com/kpuYod9O
No error is printed in the console, and AdminBro displays success in saving the record. I'm using a forked version of
admin-bro-typeorm
to avoid the problem in issue #5.To rule out any issue with our versions of AdminBro or our configuration, I set up a basic Sequelize model for this same table and used the AdminBro Sequelize adapter. The issue does not happen there and is only specific to the TypeORM adapter.
Versions Used
admin-bro
: 1.6.6admin-bro-expressjs
: 0.4.0admin-bro-typeorm
: Forked version of 1.6-alpha.8 (https://github.com/headwayio/admin-bro-typeorm)typeorm
: 0.2.22We're running on Postgres 10 in Docker.
AdminBro Options
TaxNexusRegion TypeORM Entity
The text was updated successfully, but these errors were encountered: