console.warning is not exists on browser

fix typo error for `console.warn`
This commit is contained in:
奇遇科技
2021-05-10 02:49:25 +00:00
committed by GitHub
parent 82af78fe33
commit a4d15b20ff

View File

@@ -84,7 +84,7 @@ function CodeEditor({
}) {
if (rows && typeof rows !== 'number' && rows !== 'auto') {
// eslint-disable-next-line no-console
console.warning(
console.warn(
`CodeEditor: Unexpected value for 'rows': ${rows}; expected number or 'auto'`
);
}