Skip to content

Commit 298064b

Browse files
authored
fix: update windows queries with escape chars (#5402)
1 parent 20b878c commit 298064b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/homepageExperience/components/steps/cli/ExecuteAggregateQuery.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const ExecuteAggregateQuery = (props: OwnProps) => {
3535
|> mean()`
3636

3737
const codeSnippetMac = `influx query 'from(bucket:"${bucketName}") |> range(start:-30m) |> mean()' --raw`
38-
const codeSnippetWindows = `.\\influx query 'from(bucket:"${bucketName}") |> range(start:-30m) |> mean()' --raw`
38+
const codeSnippetWindows = `.\\influx query 'from(bucket:\\"${bucketName}\\") |> range(start:-30m) |> mean()' --raw`
3939

4040
useEffect(() => {
4141
const fireKeyboardCopyEvent = event => {

src/homepageExperience/components/steps/cli/ExecuteQuery.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const ExecuteQuery = (props: OwnProps) => {
2828
const {bucket} = props
2929
const bucketName = bucket === DEFAULT_BUCKET ? 'sample-bucket' : bucket
3030
const queryMac = `influx query 'from(bucket:"${bucketName}") |> range(start:-30m)' --raw`
31-
const queryWindows = `.\\influx query 'from(bucket:"${bucketName}") |> range(start:-30m)' --raw`
31+
const queryWindows = `.\\influx query 'from(bucket:\\"${bucketName}\\") |> range(start:-30m)' --raw`
3232

3333
const fluxExample = `from(bucket: “weather-data”)
3434
|> range(start: -10m)

0 commit comments

Comments
 (0)