Skip to content

"Bracket syntax is not supported in query parameters." #20

@gvonjeetze

Description

@gvonjeetze

Hi,

possibly I found a bug in the function category.getAll()

If I call the function I get following error:
image

I already investigated the code and found out there is a small issue with the params parameter

In my opinion in line 43 it should be params: params.query instead only params.

possible solution:

export const getAll = (
http: AxiosInstance,
params: { query?: CategoryQueryParameters },
): Promise<ListResponse> =>
raw.getAllByPage(http, /api/rest/v1/categories, {
params: params.query,
});

I have already a branch locally where I adjusted this and the test also, but can't push to your repo.

If you can fix it soon it would be great, thx.

Greetings Georg

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