Skip to content

Commit

Permalink
control for no string error values (#6926)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfacar authored Jun 21, 2024
1 parent 5668b2a commit 2db56d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/react/entry-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ const silentWarnings = [
'Warning: findDOMNode is deprecated and will be removed in the next major release.',
];

const isSilentWarning = (warning: string) =>
silentWarnings.find(w => warning.includes(w)) !== undefined;
const isSilentWarning = (warning: any) =>
silentWarnings.find(w => typeof warning === 'string' && warning.includes(w)) !== undefined;

const origConsoleError = window.console.error;

Expand Down

0 comments on commit 2db56d2

Please sign in to comment.