Skip to content

Commit

Permalink
merged pexdax and then pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
AAfghahi committed Jun 10, 2021
1 parent 4632093 commit 9fb68e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ const queryField = ({
id="query"
name="query"
required={required}
value={db?.query}
value={db?.parameters?.query}
validationMethods={{ onBlur: getValidation }}
errorMessage={validationErrors?.query}
placeholder="e.g. additional parameters"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
credentials_info: JSON.parse(update.encrypted_extra),
});
}
if (update.parameters.query) {
if (update?.parameters?.query) {
// convert query params into dictionary
update.parameters.query = JSON.parse(
`{"${decodeURI(db.parameters.query || '')
`{"${decodeURI(db.parameters?.query || '')
.replace(/"/g, '\\"')
.replace(/&/g, '","')
.replace(/=/g, '":"')}"}`,
Expand Down

0 comments on commit 9fb68e0

Please sign in to comment.