Skip to content

fix: Accepts empty string for the icon prop to remove it #3760

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

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

BrunoQuaresma
Copy link
Collaborator

Fixes #3756

@BrunoQuaresma BrunoQuaresma requested a review from a team August 30, 2022 18:35
@BrunoQuaresma BrunoQuaresma self-assigned this Aug 30, 2022
Copy link
Member

@kylecarbs kylecarbs left a comment

Choose a reason for hiding this comment

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

Does the frontend always send the current icon even if it hasn't changed? If not, then it could be erased.

@BrunoQuaresma
Copy link
Collaborator Author

@kylecarbs yes, it does. I confirmed on dev.coder.com. PATCH payload sample:

{"name":"dont-use-it","description":"Use coder-ts instead 🤪🤪🤪","max_ttl_ms":86400000,"icon":"/emojis/274c.png"}

@BrunoQuaresma BrunoQuaresma enabled auto-merge (squash) August 30, 2022 18:46
@BrunoQuaresma BrunoQuaresma merged commit f037aad into main Aug 30, 2022
@BrunoQuaresma BrunoQuaresma deleted the bq/fix-3756 branch August 30, 2022 18:48
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.

🎨 Bug: Can't delete an emoji for a template
2 participants