You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 10, 2025. It is now read-only.
If the current behavior is a bug, please provide the exact steps to reproduce.
What is the expected behavior?
Additional context
Add any other context about the problem here.
Calling this.constructor.uploadImage(asset) in loadAssets() looks strange.
Usually, Client.uploadImage(asset) is called if the method is static.
Potential solution:
Just call:
const images = assets.map(Client.uploadImage);
The text was updated successfully, but these errors were encountered:
AndriySymon
changed the title
Uncomprehensible use of this.constructor.uploadImage().
Uncomprehensible use of this.constructor.uploadImage(). in client.js
Jan 27, 2025
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What is the current behavior?
If the current behavior is a bug, please provide the exact steps to reproduce.
What is the expected behavior?
Additional context
Add any other context about the problem here.
Calling this.constructor.uploadImage(asset) in loadAssets() looks strange.
Usually, Client.uploadImage(asset) is called if the method is static.
Potential solution:
Just call:
const images = assets.map(Client.uploadImage);
The text was updated successfully, but these errors were encountered: