fix(frontend): new radarr/sonarr ports will be converted to a number before posting

This commit is contained in:
sct
2020-12-14 06:37:34 +00:00
parent 5f09e83ed8
commit 92c9001c9d
4 changed files with 114 additions and 118 deletions

View File

@@ -15,7 +15,7 @@ const useClickOutside = (
): void => {
useEffect(() => {
const handleBodyClick = (e: MouseEvent) => {
if (!ref.current?.contains(e.target as Node)) {
if (ref.current && !ref.current.contains(e.target as Node)) {
callback(e);
}
};