Fixed bug in getColors
This commit is contained in:
parent
7fccdb32c5
commit
4814ce3650
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user