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

Fixed[Blue-Graph]: Enable 'Confirm' Button When Attribute is Deleted #2558

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

saithsab877
Copy link
Contributor

Problem:

  • 'Confirm' button not enabled after attribute deletion in form.

closes: #2554

Issue ticket number and link:

Evidence:

https://www.loom.com/share/654f6309fbda4647a3904046bfb5d4cf

@saithsab877
Copy link
Contributor Author

Hi @tomsmith8, @Rassl, Please review this PR.

@@ -303,6 +303,7 @@ export const Editor = ({

const handleDeleteAttribute = (attributeKey: string) => {
setDeletedAttributes((prev) => [...prev, attributeKey])
setSubmitDisabled(false)
Copy link
Collaborator

Choose a reason for hiding this comment

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

we have several checks for controlling, submitDisabled status, which is already bad, adding one more is not good, use one of the existing. Basically we need to check if something changed

Copy link
Collaborator

@Rassl Rassl left a comment

Choose a reason for hiding this comment

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

Please check out my comment

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.

[Ontology] Delete attribute doesn't trigger the 'Confirm' button
2 participants