Skip to content

Fix incorrect type used for retrieveOffices response in CreateClosure#53

Open
khushisahu476 wants to merge 1 commit intoopenMF:devfrom
khushisahu476:fix/offices-type-correction
Open

Fix incorrect type used for retrieveOffices response in CreateClosure#53
khushisahu476 wants to merge 1 commit intoopenMF:devfrom
khushisahu476:fix/offices-type-correction

Conversation

@khushisahu476
Copy link

Description

The retrieveOffices endpoint returns an array of OfficeData objects,
but the state was previously typed as GetOfficesResponse[].

This caused TypeScript mismatches and potential runtime issues.

Updated the state type to OfficeData[] and aligned the API response
handling accordingly.

No breaking changes introduced.

Related issues and discussion

Addresses the item in ISSUES.md:

Admin Organization → /organization/offices
GetOfficesResponse missing parentName

Screenshots, if any

02569c50-efb5-45d5-b39f-2693d634e9f5

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

  • If you have multiple commits please combine them into one commit by squashing them.

  • Read and understood the contribution guidelines at CONTRIBUTING.md.

@khushisahu476
Copy link
Author

Hi! This is my first contribution to this project.
Please let me know if any changes are needed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant