Skip to content

Commit

Permalink
#1973 – App crashes when template dialog is closed and there is text …
Browse files Browse the repository at this point in the history
…in the search filter (#1974)
  • Loading branch information
Nitvex authored Dec 21, 2022
1 parent ffba8b4 commit 60b27f6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ export default function useSaltsAndSolvents(
}, [])

useEffect(() => {
const filteredSaS = filterFGLib(saltsAndSolvents, filter)[
SALTS_AND_SOLVENTS
]
const filteredSaS =
filterFGLib(saltsAndSolvents, filter)[SALTS_AND_SOLVENTS] ?? []
addToSaSWithBatches(filteredSaS)
}, [saltsAndSolvents, addToSaSWithBatches])

Expand Down

0 comments on commit 60b27f6

Please sign in to comment.