Skip to content

Commit

Permalink
Merge pull request #102 from unfoldingWord-box3/bugfix-mannycolon-101
Browse files Browse the repository at this point in the history
Fixed TSV export feature
  • Loading branch information
mannycolon authored Jul 12, 2021
2 parents cb6f5ef + 2b2c8f9 commit 2700bbd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/components/DraggableTable/DraggableTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ export default function DraggableTable({
<div className={classes.root}>
<div className={classes.fill}>{`Target ${subject} (${languageId}_${bookId})`}</div>
<ProjectFab
records={records}
saveBackup={saveBackup}
savedBackup={savedBackup}
exportProject={exportProject}
Expand Down
4 changes: 1 addition & 3 deletions src/components/ProjectFab/ProjectFab.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ const StyledMenuItem = withStyles((theme) => ({
}))(MenuItem);

export default function ProjectFab({
records,
saveBackup,
savedBackup,
exportProject,
Expand Down Expand Up @@ -111,7 +110,7 @@ export default function ProjectFab({
<StyledMenuItem
onClick={() => {
handleClose();
exportProject(records);
exportProject();
}}
>
<ListItemIcon>
Expand All @@ -126,7 +125,6 @@ export default function ProjectFab({
}

ProjectFab.propTypes = {
records: PropsTypes.array.isRequired,
saveBackup: PropsTypes.func.isRequired,
savedBackup: PropsTypes.bool.isRequired,
exportProject: PropsTypes.func.isRequired,
Expand Down
4 changes: 2 additions & 2 deletions src/components/WorkingArea/WorkingArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ export default function WorkingArea({
[targetHeaders]
);

const exportProject = (targetRecords) => {
exportToTSV(sourceNotes, targetRecords, bookId, resourceId);
const exportProject = () => {
exportToTSV(sourceNotes, targetNotes, bookId, resourceId);
}

const saveBackup = async () => {
Expand Down

0 comments on commit 2700bbd

Please sign in to comment.