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

Ensure options parameter of upload() is optional #573

Closed

Conversation

chefhasteeth
Copy link

Hey 👋

  • What kind of change does this PR introduce?
    Bug fix

  • What is the current behavior?
    Since 3.33.3 (as far as I've tested, but the screenshot was captured used 3.34.3), the options parameter of the client.upload() method is marked as optional, but will error out if the param is undefined when it hits options.altText:

Screenshot from 2024-10-02 12-00-32

As a workaround, we're passing an empty object as the second argument.

  • What is the new behavior (if this is a feature change)?
    The optional options parameter can be undefined.

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.

1 participant