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
  • Loading branch information
Nitvex committed Dec 21, 2022
1 parent ffba8b4 commit 790e4f8
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 790e4f8

Please sign in to comment.