From fea0fa1336df7002648b846e7f023360a8177829 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Wed, 18 Sep 2024 18:26:29 -0300 Subject: [PATCH] temp: fix reactivity item --- .../room/Sidepanel/SidepanelItem/RoomSidepanelItem.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/meteor/client/views/room/Sidepanel/SidepanelItem/RoomSidepanelItem.tsx b/apps/meteor/client/views/room/Sidepanel/SidepanelItem/RoomSidepanelItem.tsx index 459cd5287a3e5..67ef4c3c7d5d0 100644 --- a/apps/meteor/client/views/room/Sidepanel/SidepanelItem/RoomSidepanelItem.tsx +++ b/apps/meteor/client/views/room/Sidepanel/SidepanelItem/RoomSidepanelItem.tsx @@ -17,13 +17,13 @@ const RoomSidepanelItem = ({ room, openedRoom, viewMode }: RoomSidepanelItemProp const SidepanelItem = useTemplateByViewMode(); const subscription = useUserSubscription(room._id); - const itemData = useItemData({ ...subscription, ...room } as any, { viewMode, openedRoom }); // as any because of divergent and overlaping timestamp types in subs and room (type Date vs type string) + const itemData = useItemData({ ...room, ...subscription } as any, { viewMode, openedRoom }); // as any because of divergent and overlaping timestamp types in subs and room (type Date vs type string) if (!subscription) { - return ; + return ; } - return ; + return ; }; export default memo(RoomSidepanelItem);