Skip to content
This repository was archived by the owner on Jun 10, 2026. It is now read-only.

Preserve list contents when CSV column import is cancelled#10077

Closed
Chessing234 wants to merge 1 commit into
scratchfoundation:developfrom
Chessing234:fix/csv-import-cancel-preserves-list
Closed

Preserve list contents when CSV column import is cancelled#10077
Chessing234 wants to merge 1 commit into
scratchfoundation:developfrom
Chessing234:fix/csv-import-cancel-preserves-list

Conversation

@Chessing234

Copy link
Copy Markdown

Bug

Importing a multi-column CSV into a list monitor prompts for a column number. Cancelling that prompt deletes all existing list items (#7313).

Root cause

parseInt(prompt(msg), 10) returns NaN when the user cancels. Mapping rows with row[NaN - 1] yields undefined for every row, and the subsequent string filter produces an empty array that replaces the list.

Why this fix is correct

Return early when the prompt is cancelled or the column number is out of range, so setVariableValue is not called and the existing list is left unchanged.

Fixes #7313

Made with Cursor

Cancelling or entering an invalid column number produced an empty list.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@Chessing234 Chessing234 closed this by deleting the head repository May 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENA-121 Cancelling a csv import deletes all items in the list

1 participant