makeplane / plane-mobile

📱 🛫 🔥 Mobile App of Plane. Open Source JIRA, Linear and Height Alternative. Plane helps you track your issues, epics, and product roadmaps in the simplest way possible.
GNU Affero General Public License v3.0
165 stars 52 forks source link

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

Open munnadroid opened 8 months ago

munnadroid commented 8 months ago

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.

K123Ritesh commented 4 months ago

@munnadroid the issue is resolved ???