Bug description
Bug description
When using the Explore view as mentioned (here), the application builds and runs normally BUT every time the user drags the Base Width slider inside the ZoomConfigControl panel, the following unwanted output appears in the browser console:
Console Output
'now in onbasewidthcahnge'
triggered on every drag event from:
ZoomConfigControl.tsx:68 (inside onBaseWidthChange)
→ src/explore/components/controls/ZoomConfigControl/ZoomConfigControl.tsx
I identified the root cause and the fix is straightforward. Please apply the changes described below to the codebase.
Short summary
• Root cause: a debug console.log statement was accidentally left inside the onBaseWidthChange() handler before the code was merged. The string contains a typo ('onbasewidthcahnge' instead of 'onbasewidthchange') confirming it was never meant for production.
• Fix: delete the single offending line. No logic is affected.
Screenshots/recordings
Screenshots/recordings
No response
Superset version
5.0.0
Python version
3.9
Node version
16
Browser
Chrome
Additional context
What was changed
-
Edited: src/explore/components/controls/ZoomConfigControl/ZoomConfigControl.tsx
• Removed line 68 inside onBaseWidthChange():
BEFORE:
const onBaseWidthChange = (width: number) => {
console.log('now in onbasewidthcahnge');
setBaseWidth(width);
AFTER:
const onBaseWidthChange = (width: number) => {
setBaseWidth(width);
Files inspected (for context)
• src/explore/components/controls/ZoomConfigControl/ZoomConfigControl.tsx
Additional context: No other console.log statements were found in the same file. No tests reference this line. Zero functional impact.
Checklist
Bug description
Bug description
When using the Explore view as mentioned (here), the application builds and runs normally BUT every time the user drags the Base Width slider inside the ZoomConfigControl panel, the following unwanted output appears in the browser console:
Console Output
'now in onbasewidthcahnge'
triggered on every drag event from:
ZoomConfigControl.tsx:68 (inside onBaseWidthChange)
→ src/explore/components/controls/ZoomConfigControl/ZoomConfigControl.tsx
I identified the root cause and the fix is straightforward. Please apply the changes described below to the codebase.
Short summary
• Root cause: a debug console.log statement was accidentally left inside the onBaseWidthChange() handler before the code was merged. The string contains a typo ('onbasewidthcahnge' instead of 'onbasewidthchange') confirming it was never meant for production.
• Fix: delete the single offending line. No logic is affected.
Screenshots/recordings
Screenshots/recordings
No response
Superset version
5.0.0
Python version
3.9
Node version
16
Browser
Chrome
Additional context
What was changed
Edited: src/explore/components/controls/ZoomConfigControl/ZoomConfigControl.tsx
• Removed line 68 inside onBaseWidthChange():
BEFORE:
const onBaseWidthChange = (width: number) => {
console.log('now in onbasewidthcahnge');
setBaseWidth(width);
AFTER:
const onBaseWidthChange = (width: number) => {
setBaseWidth(width);
Files inspected (for context)
• src/explore/components/controls/ZoomConfigControl/ZoomConfigControl.tsx
Additional context: No other console.log statements were found in the same file. No tests reference this line. Zero functional impact.
Checklist