mirror of
https://github.com/Sonarr/Sonarr
synced 2025-02-21 13:47:10 +00:00
Prevent page crash on console.error being used with non-string values
This commit is contained in:
parent
970df1a1d8
commit
963395b969
1 changed files with 5 additions and 4 deletions
|
@ -23,12 +23,13 @@ const error = console.error;
|
|||
function logError(...parameters: any[]) {
|
||||
const filter = parameters.find((parameter) => {
|
||||
return (
|
||||
parameter.includes(
|
||||
typeof parameter === 'string' &&
|
||||
(parameter.includes(
|
||||
'Support for defaultProps will be removed from function components in a future major release'
|
||||
) ||
|
||||
parameter.includes(
|
||||
'findDOMNode is deprecated and will be removed in the next major release'
|
||||
)
|
||||
parameter.includes(
|
||||
'findDOMNode is deprecated and will be removed in the next major release'
|
||||
))
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue