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

AI infered tags can contain " " at the beginning #184

Closed
kamtschatka opened this issue May 27, 2024 · 1 comment
Closed

AI infered tags can contain " " at the beginning #184

kamtschatka opened this issue May 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kamtschatka
Copy link
Contributor

Might also be happening on the end, I haven't tried that, but when I looked at the database, I can see the tag being named " DIY" instead of "DIY".
This leads to the scenario where you can actually create tags, that seemingly already exist:
image

image

I guess just a quick trim() would be a good idea before creating tags?

@MohamedBassem MohamedBassem added the bug Something isn't working label Jun 1, 2024
@MohamedBassem
Copy link
Collaborator

Good catch

I guess just a quick trim() would be a good idea before creating tags?

Yup, let's do it!

kamtschatka added a commit to kamtschatka/hoarder-app that referenced this issue Jun 4, 2024
added a trim to tags to prevent whitespaces at the beginning/end of tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants