chore: remove unused queries on user event types (#11159)
* remove unused queries on user event types * Fix types
This commit is contained in:
1 parent
3539693729
commit
829f90b82f
3 files changed
+32
-30
No files matched your search
@@ -61,7 +61,9 @@ export default function WorkflowDetailsPage(props: Props) {
|
||||
...options,
|
||||
...group.eventTypes.map((eventType) => ({
|
||||
value: String(eventType.id),
|
||||
label: `${eventType.title} ${eventType.children.length ? `(+${eventType.children.length})` : ``}`,
|
||||
label: `${eventType.title} ${
|
||||
eventType.children && eventType.children.length ? `(+${eventType.children.length})` : ``
|
||||
}`,
|
||||
})),
|
||||
];
|
||||
}, [] as Option[]) || [],
|
||||
|
||||
Reference in new issue
Block a user