This commit is contained in:
Swetha-Josh 2026-06-25 16:16:14 +05:30
parent 812a74455e
commit 5fd663a7d0

View File

@ -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>
)}