Skip to content

Fix: Error when saving concept names with spaces #1476

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

anurag2787
Copy link

Related issue

Closes #1439

Description

There was an issue where saving an existing concept with leading or trailing spaces in the name would cause an error. This happened because the extra spaces prevented the system from correctly checking if the concept already existed.

To fix this, I added a trim() before the validation step. Now, any spaces at the beginning or end of the concept name are removed before checking against existing entries. This ensures that the validation works properly, and if a concept with the same name already exists, it correctly shows the message:
"Same name concept already exists."

Before Update

before.avni.mp4

After Update

after.avni.mp4

@anurag2787
Copy link
Author

Hy @ombhardwajj i have fixed this issue please review

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.

Error when saving an existing concept with a space
1 participant