Skip to content

Commit 7e73d32

Browse files
authored
fix errorMessage.trim is not a function error (#124)
#106
1 parent 6b3ac31 commit 7e73d32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/panelTable.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ const PanelTable = ({
213213
...paraGraphDefaultStyle,
214214
}}
215215
>
216-
{errorMessage.trim()}
216+
{typeof errorMessage === 'string'
217+
? errorMessage.trim()
218+
: JSON.stringify(errorMessage)}
217219
</td>
218220
</tr>
219221
)}

0 commit comments

Comments
 (0)