Skip to content

Commit

Permalink
fix: rows param in results tab
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanoshadjipetrou committed Sep 1, 2020
1 parent b3df52f commit 4f198ef
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/app/modules/querybuilder-module/fragments/results/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,15 @@ export const DownloadFragment = () => {
switch (e.target.value) {
case '50':
document.cookie = 'rows=rows=50';
setQueryState(queryState.concat('', 'rows=50'));
setQueryState(
queryState.replace('rows=1000000', '').concat('', 'rows=50')
);
break;
case 'All':
document.cookie = 'rows=';
setQueryState(queryState.replace('rows=50', ''));
document.cookie = 'rows=rows=1000000';
setQueryState(
queryState.replace('rows=50', '').concat('', 'rows=1000000')
);
break;
default:
break;
Expand Down

0 comments on commit 4f198ef

Please sign in to comment.