Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit e3b507e

Browse files
author
Angel Bouzo
committed
corrected setter
1 parent 0a67342 commit e3b507e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/PromptComponent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export class PromptComponent extends React.Component<Props, State> {
200200
setValue(value: string): void {
201201
this.editor.setValue(value);
202202
this.editor.setPosition({lineNumber: 1, column: value.length + 1});
203-
this.prompt.setValue(value);
203+
this.prompt.value = value;
204204
this.focus();
205205
}
206206

@@ -211,7 +211,7 @@ export class PromptComponent extends React.Component<Props, State> {
211211

212212
private async execute(): Promise<void> {
213213
let promptText = this.editor.getValue();
214-
this.prompt.setValue(promptText);
214+
this.prompt.value = promptText;
215215

216216
if (!this.isEmpty()) {
217217
this.props.session.createJob(this.prompt);

0 commit comments

Comments
 (0)