Skip to content

Commit

Permalink
Merge pull request #471 from dres-dev/hotfix/multi-target-task-fronte…
Browse files Browse the repository at this point in the history
…nd-crash

Hotfix: Multi target task frontend crash
  • Loading branch information
sauterl authored May 27, 2024
2 parents d038275 + 005307a commit 15a7027
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion backend/src/main/kotlin/dev/dres/DRES.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import kotlin.system.exitProcess
*/
object DRES {
/** Version of DRES. */
const val VERSION = "2.0.1"
const val VERSION = "2.0.2"

/** Application root; should be relative to JAR file or classes path. */
val APPLICATION_ROOT: Path =
Expand Down
4 changes: 2 additions & 2 deletions doc/oas-client.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"openapi" : "3.0.3",
"info" : {
"title" : "DRES Client API",
"version" : "2.0.1",
"description" : "Client API for DRES (Distributed Retrieval Evaluation Server), Version 2.0.1"
"version" : "2.0.2",
"description" : "Client API for DRES (Distributed Retrieval Evaluation Server), Version 2.0.2"
},
"paths" : {
"/api/v2/client/evaluation/currentTask/{evaluationId}" : {
Expand Down
4 changes: 2 additions & 2 deletions doc/oas.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"openapi" : "3.0.3",
"info" : {
"title" : "DRES API",
"version" : "2.0.1",
"description" : "API for DRES (Distributed Retrieval Evaluation Server), Version 2.0.1",
"version" : "2.0.2",
"description" : "API for DRES (Distributed Retrieval Evaluation Server), Version 2.0.2",
"contact" : {
"name" : "The DRES Dev Team",
"url" : "https://dres.dev"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/services/pipes/filter-not-in.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class FilterNotInPipe implements PipeTransform {
transform(value: any[], haystack: any[], propertyKey : string = null): any[] {
if(value){
if(propertyKey){
return value.filter(it => !haystack.map(item => item[propertyKey]).includes(it[propertyKey]))
return value.filter(it => !haystack.map(item => item != null && item[propertyKey]).includes(it[propertyKey]))
}
return value.filter(it => !haystack.includes(it));
}else{
Expand Down

0 comments on commit 15a7027

Please sign in to comment.