Skip to content

Commit

Permalink
remove extra if
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Jun 18, 2021
1 parent 43fed33 commit 4ade477
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
const onSave = async () => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { id, ...update } = db || {};
if (update?.parameters?.query || update?.parameters?.query) {
if (update?.parameters?.query) {
// convert query params into dictionary
update.parameters.query = JSON.parse(
`{"${decodeURI((update?.parameters?.query as string) || '')
Expand Down

0 comments on commit 4ade477

Please sign in to comment.