chore: update UI dev libs and fix warnings & vulnerabilities (#24648)

This commit is contained in:
EugeneTorap
2023-07-11 05:44:35 +03:00
committed by GitHub
parent 7b957369fc
commit 117435f0d8
18 changed files with 14463 additions and 11761 deletions

View File

@@ -105,9 +105,9 @@ const RunQueryActionButton = ({
: Button;
const sqlContent = selectedText || sql || '';
const isDisabled =
!sqlContent ||
!sqlContent.replace(/(\/\*[^*]*\*\/)|(\/\/[^*]*)|(--[^.].*)/gm, '').trim();
const isDisabled = !sqlContent
?.replace(/(\/\*[^*]*\*\/)|(\/\/[^*]*)|(--[^.].*)/gm, '')
.trim();
const stopButtonTooltipText = useMemo(
() =>