adminjs icon indicating copy to clipboard operation
adminjs copied to clipboard

[Bug]: When querying table relations via @adminjs/relations the hooks for the table are not executed

Open CodeXiD opened this issue 2 years ago • 3 comments

Contact Details

No response

What happened?

When I display the dependency table (Entity2) on the Entity1 view page, it does not display the information that I additionally passed in the hook to get the Entity2 table, that is, I assume that when receiving relations, the hook is simply not executed, I think it would be logical that when receiving relations, the same hooks would be executed as for the target entity in the resource, so that I could control the data that I want to display or modify in the table when displaying it.

Bug prevalence

always

AdminJS dependencies version

"@adminjs/design-system": "^4.0.3", "@adminjs/express": "^6.0.1", "@adminjs/import-export": "^3.0.0", "@adminjs/nestjs": "^6.0.1", "@adminjs/relations": "^1.0.0", "@adminjs/typeorm": "^5.0.0", "adminjs": "^7.3.0",

What browsers do you see the problem on?

Chrome

Relevant log output

No response

Relevant code that's giving you issues

No response

CodeXiD avatar Dec 20 '23 09:12 CodeXiD

Same issue here, any workarounds bro?

hossamhamzahm avatar Apr 26 '24 15:04 hossamhamzahm

@hossamhamzahm We did not find a way to solve this and scored 🥲

CodeXiD avatar Apr 26 '24 15:04 CodeXiD