diff --git a/grommet-leaflet/src/index.js b/grommet-leaflet/src/index.js index 3422562..647942e 100644 --- a/grommet-leaflet/src/index.js +++ b/grommet-leaflet/src/index.js @@ -15,7 +15,10 @@ const SUPPRESSED_WARNINGS = [ ]; console.error = function filterWarnings(msg, ...args) { - if (msg && !SUPPRESSED_WARNINGS.some(entry => msg.includes(entry))) { + if ( + Array.isArray(msg) && + !SUPPRESSED_WARNINGS.some(entry => msg.includes(entry)) + ) { consoleError(msg, ...args); } };