Skip to content

Use same function for both schema tab and query results #2426

@mtp1376

Description

@mtp1376

Currently the schema tab is using type names in the switch-case

https://github.com/iasql/iasql/blob/282c305b7bc1374a3b5fc5ae3f2082c23ebac68c/dashboard/src/components/QuerySidebar/Schema.tsx#L19-L45

and the query results table is using type ids
https://github.com/iasql/iasql/blob/817595df96ff94023e19989a579d946c8d90b1c1/dashboard/src/components/common/Table.tsx#L16-L49

we should make them both use the same input to make it easier to maintain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions