Skip to content

Commit bb99df4

Browse files
committed
Add _ prefix to this.editor to signify privateness
1 parent fd6dd05 commit bb99df4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/InstructionsEditor.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ export default class InstructionsEditor extends React.Component {
1414
}
1515

1616
_handleSaveChanges() {
17-
const newValue = this.editor.value.trim();
17+
const newValue = this._editor.value.trim();
1818
this.props.onSaveChanges(this.props.projectKey, newValue);
1919
}
2020

2121
_ref(editorElement) {
22-
this.editor = editorElement;
22+
this._editor = editorElement;
2323
}
2424

2525
render() {

0 commit comments

Comments
 (0)