Skip to content

Commit

Permalink
Keep metadatakey list mutable after switch of seperator
Browse files Browse the repository at this point in the history
  • Loading branch information
BartChris committed Mar 22, 2024
1 parent 83b1b9f commit b6735b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private void resetValues() {
* Event listender function called when user switches CSV separator character used to split text lines into cells.
*/
public void changeSeparator() {
metadataKeys = List.of(String.join(previousCsvSeparator, metadataKeys).split(csvSeparator));
metadataKeys = new LinkedList<>(Arrays.asList(String.join(previousCsvSeparator, metadataKeys).split(csvSeparator)));
records = massImportService.updateSeparator(records, previousCsvSeparator, csvSeparator);
}

Expand Down

0 comments on commit b6735b2

Please sign in to comment.