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

chore: update error handling in useValidateComponent #14352

Merged

Conversation

Konrad-Simso
Copy link
Contributor

@Konrad-Simso Konrad-Simso commented Jan 3, 2025

Description

Update error handling to not return an error when optionsId is set.

With the the changes made from the PRs in Dependencies, we are rendering alerts to warn the user at appropriate times. This PR will remove the double warning as it will no not serve a purpose to render both an error and an alert.

Related Issue

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)

Dependencies

@Konrad-Simso Konrad-Simso added area/ui-editor Area: Related to the designer tool for assembling app UI in Altinn Studio. frontend team/studio-domain1 labels Jan 3, 2025
@github-actions github-actions bot added the solution/studio/designer Issues related to the Altinn Studio Designer solution. label Jan 3, 2025
@Konrad-Simso Konrad-Simso linked an issue Jan 3, 2025 that may be closed by this pull request
Copy link
Contributor

@standeren standeren left a comment

Choose a reason for hiding this comment

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

Nice ⭐

@ErlingHauan ErlingHauan self-assigned this Jan 6, 2025
Copy link

codecov bot commented Jan 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.53%. Comparing base (a712b7d) to head (70b657a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14352      +/-   ##
==========================================
- Coverage   95.54%   95.53%   -0.01%     
==========================================
  Files        1860     1860              
  Lines       24106    24099       -7     
  Branches     2783     2782       -1     
==========================================
- Hits        23031    23024       -7     
  Misses        817      817              
  Partials      258      258              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ErlingHauan ErlingHauan merged commit 1545c2d into main Jan 6, 2025
11 checks passed
@ErlingHauan ErlingHauan deleted the chore/update-error-handling-in-useValidateComponent branch January 6, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui-editor Area: Related to the designer tool for assembling app UI in Altinn Studio. frontend solution/studio/designer Issues related to the Altinn Studio Designer solution. team/studio-domain1
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Merge "select codelist" and "edit codelist" views
3 participants