Skip to content

Fix for double downloading when exporting to excel and changing different expression sources#1281

Merged
dondi merged 2 commits intobetafrom
maika-1224
Nov 16, 2025
Merged

Fix for double downloading when exporting to excel and changing different expression sources#1281
dondi merged 2 commits intobetafrom
maika-1224

Conversation

@ntran18
Copy link
Collaborator

@ntran18 ntran18 commented Nov 16, 2025

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where the Excel export functionality would trigger double downloads when users changed between different expression data sources in the export modal. The fix ensures event handlers are properly cleaned up before rebinding.

Key Changes:

  • Modified performExport function to accept an event parameter and call preventDefault() to prevent default form submission behavior
  • Added .off("click") calls before rebinding the Export-Excel-Button click handler to prevent multiple event handlers from accumulating

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Owner

@dondi dondi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dondi dondi merged commit 227da09 into beta Nov 16, 2025
3 checks passed
@dondi
Copy link
Owner

dondi commented Nov 16, 2025

Oh, and thank you Copilot for catching that console.log 🤖

@dondi dondi deleted the maika-1224 branch November 16, 2025 21:37
@coveralls
Copy link

Coverage Status

coverage: 80.06%. remained the same
when pulling 27b772c on maika-1224
into 569311d on beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants