useSelect not working , giving error G.mpa.data is not a function
const { selectProps } = useSelect<ICategory>({
resource: "categories",
});
My api response is
{
"count": 4,
"next": null,
"previous": null,
"results": [
{
"id": 1,
"organization_name": "test2",
},
{
"id": 2,
"organization_name": "test2",
},
{
"id": 3,
"organization_name": "test2",
},
{
"id": 4,
"organization_name": "test2",
}
]
}
resource: "categories",
});
My api response is
{
"count": 4,
"next": null,
"previous": null,
"results": [
{
"id": 1,
"organization_name": "test2",
},
{
"id": 2,
"organization_name": "test2",
},
{
"id": 3,
"organization_name": "test2",
},
{
"id": 4,
"organization_name": "test2",
}
]
}
