Skip to content

Commit

Permalink
Merge pull request #147 from unfoldingWord/bugFix-Joel-1150
Browse files Browse the repository at this point in the history
Saved user choices for columns in TSV
  • Loading branch information
Joel-C-Johnson authored Oct 24, 2023
2 parents 356f0e4 + 024271a commit c7a91c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "datatable-translatable",
"version": "1.2.2",
"version": "1.2.3",
"license": "MIT",
"description": "A Component Library for Translating DataTables using React and MaterialUI.",
"homepage": "https://datatable-translatable.netlify.com/",
Expand Down
4 changes: 4 additions & 0 deletions src/components/datatable/DataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ function DataTable({
[columnsShow]
);

if(columnsShow){
localStorage.setItem('StoredColumn', columnsShow);
}

// Scroll to bottom when navigating to previous page
const scrollToBottom = (action) => {
if (dataTableElement && dataTableElement.current) {
Expand Down

0 comments on commit c7a91c9

Please sign in to comment.