Fix react-rte tests (#43588)

They check whether a method is defined on props, but the props type
doesn't make the method optional. Typescript now catches this error, so
I made the method optional.
This commit is contained in:
Nathan Shively-Sanders
2020-04-02 09:20:55 -07:00
committed by GitHub
parent 46cb9e4438
commit 6a273ee3da
+1 -1
View File
@@ -2,7 +2,7 @@ import * as React from "react";
import RichTextEditor, { EditorValue } from "react-rte";
interface Props {
onChange: (val: string) => void;
onChange?: (val: string) => void;
}
class MyStatefulEditor extends React.Component<Props, any> {