-
Notifications
You must be signed in to change notification settings - Fork 18
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
UIIN-2497 Fix exception when closing Fast Add record modal #2344
Conversation
@@ -548,7 +548,7 @@ class InstancesList extends React.Component { | |||
} | |||
} | |||
|
|||
toggleNewFastAddModal = ({ instanceRecord }) => { | |||
toggleNewFastAddModal = ({ instanceRecord } = {}) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm not mistaken on line 739 buildOnClickHandler
calls this function with arg this.context.sendCallout
which is a function, not an object with instanceRecord
prop. Looks like something is not correct here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch @mariia-aloshyna, I added a separate function to handle closing of the modal. It will always receive the same type of argument
Update CHANGELOG also please |
This is a follow-up request to this one #2331 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update changelog.md file
Hi @Terala-Priyanka see a comment from Denys above, it's follow-up PR, changelog has been already updated |
Kudos, SonarCloud Quality Gate passed! |
Description
When closing Fast Add modal, function
toggleNewFastAddModal
argument is undefinedIssues
UIIN-2497