Skip to content

Commit

Permalink
nextstrain#1055: add "selected" to the filename for metadata exports …
Browse files Browse the repository at this point in the history
…of selected tips only
  • Loading branch information
frogsquire committed Apr 12, 2020
1 parent 18600e0 commit 8dc30f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/download/helperFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export const strainTSV = (dispatch, filePrefix, nodes, colorings, selectedNodesO

/* write out information we've collected */
// todo: filename for selected only
const filename = `${filePrefix}_metadata.tsv`;
const filename = `${filePrefix}${selectedNodesOnly ? "_selected_" : "_"}metadata.tsv`;
write(filename, MIME.tsv, linesToWrite.join("\n"));
dispatch(infoNotification({message: `Metadata exported to ${filename}`}));
};
Expand Down

0 comments on commit 8dc30f0

Please sign in to comment.