Web:Client:Fixed page crash.

This commit is contained in:
gazizova-vlada 2023-08-21 18:14:52 +03:00
parent 4e6b988ebf
commit f4542b089e

View File

@ -70,7 +70,7 @@ const ItemsList = ({
const heightList = height ? height : bodyRef.current.offsetHeight;
const totalHeightItems = inviteItems.length * USER_ITEM_HEIGHT;
const listAreaHeight = heightList;
const heightBody = invitePanelBodyRef.current.clientHeight;
const heightBody = invitePanelBodyRef?.current?.clientHeight;
const fullHeightList = heightBody - bodyRef.current.offsetTop;
const heightWitchOpenItemAccess = Math.max(scrollHeight, fullHeightList);