Skip to content

Comments

fix (components/widgets/input): Warning while loading delete user page#187

Merged
GMishx merged 1 commit intofossology:mainfrom
krishna9304:krishna9304/167/warning-in-delete-user-page
Jun 13, 2022
Merged

fix (components/widgets/input): Warning while loading delete user page#187
GMishx merged 1 commit intofossology:mainfrom
krishna9304:krishna9304/167/warning-in-delete-user-page

Conversation

@krishna9304
Copy link
Contributor

Description

This PR is in reference to the issue #167 . A warning in the console stated an error like below,

Warning: Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components
select

This occurs when we try to use value and defaultValue prop inside a select tag simultaneously.

Changes

The solution is to remove one of the value or defaultValue prop.

Note: This PR also have the fixes for undefined value for currentGroup in local storage

This PR closes #167 .

@krishna9304
Copy link
Contributor Author

krishna9304 commented Mar 22, 2022

@sjha2048 @GMishx @Shruti3004 can you review the PR?

@krishna9304 krishna9304 changed the title Krishna9304/167/warning in delete user page fix (components/widgets/input): Warning while loading delete user page Mar 23, 2022
@GMishx GMishx added needs review Need code review needs test Needs testing labels Mar 28, 2022
@krishna9304 krishna9304 force-pushed the krishna9304/167/warning-in-delete-user-page branch 2 times, most recently from 6bdac2a to e5814b6 Compare June 7, 2022 14:10
@krishna9304 krishna9304 force-pushed the krishna9304/167/warning-in-delete-user-page branch from e5814b6 to c0a86e0 Compare June 7, 2022 15:20
@krishna9304 krishna9304 requested a review from GMishx June 7, 2022 15:27
Copy link
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

Changes looks good. Needs test.

@GMishx GMishx removed the needs review Need code review label Jun 13, 2022
Copy link
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

Tested, working as expected.

@GMishx GMishx added ready PR is ready for merge and removed needs test Needs testing labels Jun 13, 2022
@GMishx GMishx merged commit bd5afd9 into fossology:main Jun 13, 2022
tiyasakundu pushed a commit to tiyasakundu/FOSSologyUI that referenced this pull request Aug 28, 2025
report: coding period for week 12
sankshi pushed a commit to sankshi/FOSSologyUI that referenced this pull request Nov 24, 2025
…ning-in-delete-user-page

fix (components/widgets/input): Warning while loading delete user page

Reviewed-by: mishra.gaurav@siemens.com
Tested-by: mishra.gaurav@siemens.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready PR is ready for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warning while loading delete user page

3 participants