Merge pull request #1962 from molecula/fb-1237

[FB-1237] Revert auto-quoting in Web UI
This commit is contained in:
Ben Johnson 2022-03-03 13:01:45 -07:00 committed by GitHub
commit 32fb80960a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,19 +119,7 @@ export const QueryContainer: FC<{}> = () => {
setLoading(false);
}
} else {
let queryArr = query.split(' ');
queryArr.forEach((word, idx) => {
if (word.includes('-')) {
let wordArr = word.split('.');
wordArr.forEach((section, idx) => {
if (section.includes('-') && !word.includes('`')) {
wordArr[idx] = `\`${wordArr[idx]}\``;
}
});
queryArr[idx] = wordArr.join('.');
}
});
querySQL(queryArr.join(' '), handleQueryMessages, handleQueryEnd);
querySQL(query, handleQueryMessages, handleQueryEnd);
}
}
};