Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

fix: having null or undefined values breaks stringify #962

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

edodusi
Copy link
Contributor

@edodusi edodusi commented Mar 27, 2025

Pull request type

Fixes: #960

A recent commit added the starts_with param to the recursive resolve_relations method, and when the param is undefined it produces a starts_with=undefined URL which breaks the API.

This commit fixes the bug by stripping null or undefined values from the final URL.

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Other (please describe):

How to test this PR

Unit tests included.

@edodusi edodusi added the bug Something isn't working label Mar 27, 2025
@edodusi edodusi merged commit 22dddff into main Mar 27, 2025
8 checks passed
@edodusi edodusi deleted the fix/stringify_empty_params branch March 27, 2025 16:24
Copy link

🎉 This PR is included in version 6.10.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

starts_with parameter break subsequent requests of resolved relations
2 participants