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

UIIN-2497 Fix exception when closing Fast Add record modal #2344

Merged
merged 4 commits into from
Nov 14, 2023

Conversation

BogdanDenis
Copy link
Contributor

Description

When closing Fast Add modal, function toggleNewFastAddModal argument is undefined

Issues

UIIN-2497

Copy link

github-actions bot commented Nov 10, 2023

Jest Unit Test Statistics

    1 files  ±0  228 suites  ±0   10m 56s ⏱️ - 3m 57s
903 tests ±0  901 ✔️ ±0  2 💤 ±0  0 ±0 
908 runs  ±0  906 ✔️ ±0  2 💤 ±0  0 ±0 

Results for commit 2471ddc. ± Comparison against base commit a505e01.

♻️ This comment has been updated with latest results.

@@ -548,7 +548,7 @@ class InstancesList extends React.Component {
}
}

toggleNewFastAddModal = ({ instanceRecord }) => {
toggleNewFastAddModal = ({ instanceRecord } = {}) => {
Copy link
Contributor

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

Copy link
Contributor Author

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

@mariia-aloshyna
Copy link
Contributor

Update CHANGELOG also please

@BogdanDenis
Copy link
Contributor Author

Update CHANGELOG also please

This is a follow-up request to this one #2331

@BogdanDenis BogdanDenis requested a review from a team November 13, 2023 15:49
Copy link
Contributor

@Terala-Priyanka Terala-Priyanka left a 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

@mariia-aloshyna
Copy link
Contributor

Please update changelog.md file

Hi @Terala-Priyanka see a comment from Denys above, it's follow-up PR, changelog has been already updated

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

83.3% 83.3% Coverage
0.0% 0.0% Duplication

@BogdanDenis BogdanDenis merged commit acaeba7 into master Nov 14, 2023
4 checks passed
@BogdanDenis BogdanDenis deleted the UIIN-2497 branch November 14, 2023 11:35
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.

3 participants