Fix/api URL field twitch (#1495)

Fixes: #1248
Co-authored-by: Yedoti Sumanth <sumanthyedoti@redd.in>
This commit is contained in:
Sumanth Yedoti 2020-11-03 12:21:02 +05:30 committed by GitHub
parent 1c4adf84a1
commit 87a2effbc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -271,6 +271,7 @@ class CodeEditor extends Component<Props, State> {
theme,
disabled,
className,
placeholder,
showLightningMenu,
dataTreePath,
dynamicData,
@ -349,12 +350,11 @@ class CodeEditor extends Component<Props, State> {
className="leftImageStyles"
/>
)}
<textarea
ref={this.textArea}
{..._.omit(this.props.input, ["onChange", "value"])}
defaultValue={input.value}
placeholder={this.props.placeholder}
placeholder={placeholder}
/>
{this.props.link && (
<React.Fragment>

View File

@ -6,4 +6,5 @@ export default styled.div`
flex-direction: row;
justify-content: space-between;
align-items: flex-start;
min-height: 50px;
`;

View File

@ -237,7 +237,7 @@ const mapStateToProps = (
};
};
const mapDispatchToProps = (dispatch: Function): ReduxDispatchProps => ({
const mapDispatchToProps = (dispatch: any): ReduxDispatchProps => ({
updateDatasource: datasource =>
dispatch(change(API_EDITOR_FORM_NAME, "datasource", datasource)),
});