Fixed bug in getColors

This commit is contained in:
deiflaender 2022-03-24 16:46:04 +01:00
parent 7fccdb32c5
commit 4814ce3650

View File

@ -367,7 +367,7 @@ public class RedactionLogMergeService {
private float[] getColor(List<Type> types, String type) {
Optional<Type> foundType = types.stream().filter(t -> t.equals(type)).findFirst();
Optional<Type> foundType = types.stream().filter(t -> t.getType().equals(type)).findFirst();
if (foundType.isPresent()){
return convertColor(foundType.get().getHexColor());
}
@ -376,7 +376,7 @@ public class RedactionLogMergeService {
boolean isHint(List<Type> types, String type){
Optional<Type> foundType = types.stream().filter(t -> t.equals(type)).findFirst();
Optional<Type> foundType = types.stream().filter(t -> t.getType().equals(type)).findFirst();
if (foundType.isPresent()){
return foundType.get().isHint();
}