Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

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

@munnadroid

Description

@munnadroid

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions