influxdata / influxdata/ui

Data Explorer sample SQL statement self replicates on each opening of the explorer

Open
#6,554 3 comments 0 reactions 1 assignee Claimed by @wiedld View on GitHub
kind/bug team/ui
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

## About the bug

Opening the Data Explorer in Cloud presents you with an example SQL statement which is 3 lines long.
If you click back to the "Load Data" page, and then back again to the Data Explorer you get another copy of the example SQL.
You can repeat this process and the SQL gets longer and longer each time.

**Steps to reproduce:**
1. Browse to Load Data
2. Browse to Data Explorer
3. Notice the example SQL statement
4. Browse to Load Data
5. Browse to Data Explorer
6. Notice the additional copy of the example SQL
7. GOTO 1

**Expected behavior:**

The example SQL stays the same.

**Actual behavior:**

The example SQL clones itself each time you open the Explorer.

**Visual Proof:**

https://user-images.githubusercontent.com/6552931/215849318-ec573bf9-f2b3-4cbc-987e-f920a1286182.mp4

## About your environment

**Environment info:**

Linux desktop
Chrome browser

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.