diff --git a/src/app/views/query-runner/QueryRunner.tsx b/src/app/views/query-runner/QueryRunner.tsx index 3e54154c13..2f0865fa0a 100644 --- a/src/app/views/query-runner/QueryRunner.tsx +++ b/src/app/views/query-runner/QueryRunner.tsx @@ -87,6 +87,8 @@ export class QueryRunner extends Component< } if (actions) { + // remove whitespaces + sampleQuery.sampleUrl = sampleQuery.sampleUrl.replace(/\s+/g, ''); actions.runQuery(sampleQuery); const sanitizedUrl = sanitizeQueryUrl(sampleQuery.sampleUrl); telemetry.trackEvent(eventTypes.BUTTON_CLICK_EVENT,