Web:Shared:Fixed page crash when clicking on the cross of the selected tag from the hidden list of tags in the search.

This commit is contained in:
Vlada Gazizova 2024-02-22 16:29:20 +03:00
parent 6ebbb26d0d
commit 7787407d5d

View File

@ -41,7 +41,9 @@ export const TagPure = ({
const onClickOutside = React.useCallback((e: Event) => {
const target = e.target as HTMLElement;
if (
(!!target && target.className?.includes("advanced-tag")) ||
(!!target &&
typeof target.className !== "object" &&
target.className?.includes("advanced-tag")) ||
!isMountedRef.current
)
return;