Skip to content

Commit

Permalink
Fix search filter translated/untranslated not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny-Hui committed Aug 9, 2024
1 parent 4c8aafd commit 344fa4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/layout/editor/listing/GroupRow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
function meetFilter(unit: Unit, query: SearchQuery) {
if(!query.showNumericOnly && (/^\d+$/.test(unit.source))) return false;
if(!query.showTranslated && (unit.target != null)) return false;
if(!query.showUntranslated && (unit.target == null)) return false;
if(!query.showTranslated && (unit.target != "")) return false;
if(!query.showUntranslated && (unit.target == "")) return false;
return true;
}
Expand Down

0 comments on commit 344fa4e

Please sign in to comment.