Web: Client: Fix members infinite loading after inside group selection

This commit is contained in:
Aleksandr Lushkin 2024-02-19 15:08:56 +01:00
parent d796213a67
commit 095aecc883

View File

@ -52,8 +52,14 @@ const Members = ({
const membersHelper = new MembersHelper({ t });
const updateInfoPanelMembers = async () => {
console.log(infoPanelSelection)
if (!infoPanelSelection || !infoPanelSelection.id) return;
if (
!infoPanelSelection ||
!infoPanelSelection.isRoom ||
!infoPanelSelection.id
) {
return;
}
const fetchedMembers = await fetchMembers(t, true, withoutTitlesAndLinks);
setInfoPanelMembers(fetchedMembers);
};