Skip to content

Commit

Permalink
MOSIP-37719 - Admin Devices List page. (#1008)
Browse files Browse the repository at this point in the history
* MOSIP-37719 - Admin Devices List page.

Signed-off-by: sudeep <[email protected]>

* MOSIP-37719 - Admin Devices List page.

Signed-off-by: sudeep <[email protected]>

---------

Signed-off-by: sudeep <[email protected]>
  • Loading branch information
Sudeep7353 authored Dec 10, 2024
1 parent 4281812 commit 18e70b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ function AdminDeviceDetailsFilter({ onApplyFilter, setErrorCode, setErrorMsg}) {

// Check if fieldName is 'deviceType'
if (fieldName === 'deviceType') {
//clear deviceSubType dropdown data
setDeviceSubTypeDropdownData([])
// return if no deviceType is selected
if(selectedFilter === ""){
setDeviceSubTypeDropdownData([])
return;
}
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function TextInputComponent({ fieldName, fieldNameKey, placeHolderKey, textBoxVa
const handleInputChange = (event) => {
const newValue = event.target.value;
setInputValue(newValue);
onTextChange(fieldName, newValue);
onTextChange(fieldName, newValue.trim());
};

const onTextClear = () => {
Expand Down

0 comments on commit 18e70b2

Please sign in to comment.