Skip to content

Commit

Permalink
Remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Khazuar committed Apr 6, 2020
1 parent 98c0806 commit 7d698e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-mathlive",
"version": "2.0.2",
"version": "2.0.4",
"description": "An interactive math input for react.",
"main": "dist/index.js",
"files": [
Expand Down
5 changes: 0 additions & 5 deletions src/MathFieldComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,11 @@ export class MathFieldComponent extends React.Component<Props> {
prevProps,
props: this.props,
}

console.log("componentDidUpdate", p);

if (prevProps.latex !== undefined) {
console.log("prevProps.latex !== undefined", p);
if (this.props.latex === undefined) {
throw new Error("Cannot change from controlled to uncontrolled state!");
}
if (this.props.latex !== prevProps.latex) {
console.log("trigger mathlive update", this.props.latex);
if (this.props.latex === "") {
this.mathField.$perform("deleteAll");
} else {
Expand Down

0 comments on commit 7d698e6

Please sign in to comment.