Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unable to view project details - Data parse issue in getStates #164

Open
munnadroid opened this issue Dec 27, 2023 · 1 comment
Open

Comments

@munnadroid
Copy link

munnadroid commented Dec 27, 2023

In getStates functin of issues_provider.dart, the resonse data type is mismatched.
response has List data but it is assigned to Map data type variable statesData

Response is:
[{ "id": "0e2177fd-440d-49bc-a7b8-e2cf0d216cab", "created_at": "2023-12-21T08:06:41.024587Z", "updated_at": "2023-12-21T08:06:41.024659Z", "name": "Backlog", "description": "", "color": "#A3A3A3", "slug": "", "sequence": 15000.0, "group": "backlog", "default": true, "created_by": "30dd9452-9506-402f-a946-fbca0ed73196", "updated_by": null, "project": "7dbf1a8a-13e1-4d05-9b96-962e3f42697d", "workspace": "31d6c3d6-aa40-468a-a7ca-deb0af2f4ce9" }, { "id": "863278c9-1b4d-4q20-b7ed-85469ae99017", "created_at": "2023-12-21T08:06:41.024698Z", "updated_at": "2023-12-21T08:06:41.024703Z", "name": "Todo", "description": "", "color": "#3A3A3A", "slug": "", "sequence": 25000.0, "group": "unstarted", "default": false, "created_by": "30dd9412-9506-402f-a946-fbca0ed73196", "updated_by": null, "project": "7dbffa8a-2ae1-4d05-9b96-961e3f42697d", "workspace": "31d6c3da-af40-468a-a7ca-deb0af2f4ce9" }]
But expected data in code is Map.
That's why unable to view the project detail.

@munnadroid munnadroid changed the title Unable to view project details - Data parse issue in getStates [Bug] Unable to view project details - Data parse issue in getStates Dec 27, 2023
@K123Ritesh
Copy link

@munnadroid the issue is resolved ???

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

No branches or pull requests

2 participants