feature/IO-3499-React-19 checkpoint
This commit is contained in:
@@ -105,7 +105,7 @@ export function ChatPopupComponent({ chatVisible, selectedConversation, toggleCh
|
||||
|
||||
hasLoadedConversationsOnceRef.current = true;
|
||||
|
||||
getConversations({ offset: 0 }).catch((err) => {
|
||||
getConversations({ variables: { offset: 0 } }).catch((err) => {
|
||||
console.error(`Error fetching conversations: ${err?.message || ""}`, err);
|
||||
});
|
||||
}, [getConversations]);
|
||||
@@ -115,7 +115,7 @@ export function ChatPopupComponent({ chatVisible, selectedConversation, toggleCh
|
||||
if (called && typeof refetch === "function") {
|
||||
await refetch({ variables: { offset: 0 } });
|
||||
} else {
|
||||
await getConversations({ offset: 0 });
|
||||
await getConversations({ variables: { offset: 0 } });
|
||||
}
|
||||
} catch (err) {
|
||||
console.error(`Error refreshing conversations: ${err?.message || ""}`, err);
|
||||
|
||||
Reference in New Issue
Block a user