Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vmonakhov committed Nov 17, 2023
1 parent 592fafd commit 913d8f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/DictionariesAll/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,14 @@ const DictionariesAll = ({ forCorpora = false, forParallelCorpora = false }) =>
break;

case "grant":
if (!forCorpora) {
if (!forCorpora && !forParallelCorpora) {
mode = "grant";
id = value;
}
break;

case "organization":
if (!forCorpora) {
if (!forCorpora && !forParallelCorpora) {
mode = "organization";
id = value || "";
}
Expand Down Expand Up @@ -312,7 +312,7 @@ const DictionariesAll = ({ forCorpora = false, forParallelCorpora = false }) =>
const queryDictId = {};
const queryDictAll = {};

const sortModeList = forCorpora ? ["language"] : ["language", "grant", "organization"];
const sortModeList = forCorpora || forParallelCorpora ? ["language"] : ["language", "grant", "organization"];

for (const aSortMode of sortModeList) {
const variablesId = { ...variables };
Expand Down

0 comments on commit 913d8f8

Please sign in to comment.