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

fix: prune empty query parameters #136

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

zaostrovskii
Copy link
Contributor

simple solution for api methods with nullable parameters in query

libs/utils.ts Outdated
return url;
}

const splitedUrl = url.split(querySeparator);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

splitted or separated

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, you can assign vars by

const [path, query] = url.split(querySeparator);

@aleshchev aleshchev merged commit 8973f56 into Luxoft:master Feb 20, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants