Skip to content

Commit

Permalink
fixed ESlint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Gissebass committed Apr 6, 2024
1 parent d18e72c commit ac33b3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/views/Intern/InternSearch/InternSearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ interface ChipData {
label: string;
}

const useStyles = makeStyles((theme) => ({
const useStyles = makeStyles(() => ({
flexContainer: {
display: "flex",
flexWrap: "wrap", // Enable wrapping elements to the next row
Expand Down Expand Up @@ -209,7 +209,9 @@ const InternSearchInput: React.FC = () => {
}
photoSearch.photoTags = photoTags
.filter((photoTag) => typeof photoTag.name === "string")
.map((photoTag) => photoTag.name!);
.map((photoTag) => photoTag.name)
.filter((name) => name !== null && name !== undefined) // Filter out null or undefined values
.map((name) => name!); // Map to get the array of names

const filteredMotive = motives.filter((item) => {
return item.title == motive.toString();
Expand Down

0 comments on commit ac33b3f

Please sign in to comment.