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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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'`
);
}