sef-global / scholarx-frontend

This is the frontend of the ScholarX
MIT License
5 stars 50 forks source link

Fix category dropdown of mentor application to match with endpoint update #64

Closed Madhawa97 closed 8 months ago

Madhawa97 commented 8 months ago

Purpose

The purpose of this PR is to fix #63

Goals

The category dropdown of mentor application needs to be updated to comply with the backend endpoint changes introduced with this pull request.

Approach

Update the code to use category.uuid instead of category.id.

Screenshots

Checklist

Related PRs

[PR #83 on scholarx/backend](https://github.com/sef-global/scholarx-backend/pull/83) ## Test environment ## Learning
Madhawa97 commented 8 months ago

Also the documentation needs to be updated to have,

{
    "categories": [
        {
            "category": "Data Science",
            "id": "95ba00c0-8173-43c4-9573-6b481b4085e2"
        },
        {
            "category": "Random Category",
            "id": "fe7ca629-4f5e-440a-86cb-d54f8b98ec5f"
        },
        {
            "category": "Computer Science",
            "id": "fef68adb-e710-4d9e-8772-dc4905885088"
        }
    ],
    "message": "All Categories found"
}