updates
This commit is contained in:
parent
812a74455e
commit
5fd663a7d0
@ -622,7 +622,7 @@ const IsicHsCodes = () => {
|
||||
|
||||
// Filter data based on search term
|
||||
React.useEffect(() => {
|
||||
if (!searchTerm.trim()) {
|
||||
if (!searchTerm?.trim()) {
|
||||
setFilteredData(rowsData);
|
||||
} else {
|
||||
const lowercasedSearch = searchTerm.toLowerCase();
|
||||
@ -1622,9 +1622,9 @@ const handleExportCSV = () => {
|
||||
>
|
||||
<option value="">Select Unit</option>
|
||||
{unitOptions.map((option) => (
|
||||
<option key={option.value} value={option.value}>
|
||||
{option.label.split('-')[1].trim()}
|
||||
</option>
|
||||
<option key={option.value} value={option.value}>
|
||||
{option?.label}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
)}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user