Skip to content
Merged
5 changes: 5 additions & 0 deletions .changeset/sour-pianos-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

fixes issue that caused errors on the threads list to be shown as `[object, Object]`
Comment thread
MartinSchoeler marked this conversation as resolved.
Outdated
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
import { VirtualizedScrollbars } from '../../../../components/CustomScrollbars';
import { useRecordList } from '../../../../hooks/lists/useRecordList';
import { AsyncStatePhase } from '../../../../lib/asyncState';
import { getErrorMessage } from '../../../../lib/errorHandling';
import type { ThreadsListOptions } from '../../../../lib/lists/ThreadsList';
import { useRoom, useRoomSubscription } from '../../contexts/RoomContext';
import { useRoomToolbox } from '../../contexts/RoomToolboxContext';
Expand Down Expand Up @@ -144,7 +145,7 @@ const ThreadList = () => {

{error && (
<Callout mi={24} type='danger'>
{error.toString()}
{getErrorMessage(error)}
Comment thread
MartinSchoeler marked this conversation as resolved.
Outdated
</Callout>
)}

Expand Down