We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f4db5b commit d87eee6Copy full SHA for d87eee6
Dashboard/src/Utils/MonitorType.ts
@@ -49,7 +49,9 @@ export default class MonitorTypeUtil {
49
options: category.monitorTypes
50
.map((monitorType: MonitorType): CardSelectOption | null => {
51
const typeProps: MonitorTypeProps | undefined = allProps.find(
52
- (p: MonitorTypeProps) => p.monitorType === monitorType,
+ (p: MonitorTypeProps) => {
53
+ return p.monitorType === monitorType;
54
+ },
55
);
56
57
if (!typeProps) {
@@ -64,8 +66,9 @@ export default class MonitorTypeUtil {
64
66
};
65
67
})
68
.filter(
- (option: CardSelectOption | null): option is CardSelectOption =>
- option !== null,
69
+ (option: CardSelectOption | null): option is CardSelectOption => {
70
+ return option !== null;
71
72
),
73
74
},
0 commit comments