Fixed bug in getColors
This commit is contained in:
parent
e6376b4865
commit
980b01e8d8
@ -366,7 +366,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());
|
||||
}
|
||||
@ -375,7 +375,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