Strapi 5 Admin/CM/pages/ListView/inject-column-in-table

In strapi 5 using the below code in bootstrap of admin/app.tsx the displayedHeaders and layout are empty while in 4 was working

bootstrap(app: StrapiApp) {

app.registerHook(“Admin/CM/pages/ListView/inject-column-in-table”, ({ displayedHeaders, layout }) => {

})

and I am getting an error headers is undefined. Has anyone a working example how to inject a column in listview in strapi 5

This topic has been created from a Discord post (1300775392428163084) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord