vivid-planet / comet

Comet DXP

Home Page:https://comet-dxp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

useTableQuery check doesn't handle status code 500 correctly

Ben-Ho opened this issue · comments

somehow data is an empty object ({}) and does not get catched by if (!ret.data) https://github.com/vivid-planet/react-admin/blob/master/packages/react-admin-core/src/table/useTableQuery.ts#L122, resolveTableData is called with an empty object.

is this intended?

No, this is not intended :)

please provide a PR

solved in #68