fix: ternary operator with lenght causing 0 (#10090)
parent
c9fc88ddc7
commit
6d413f5721
|
@ -503,7 +503,7 @@ const EventTypePage = (props: EventTypeSetupProps) => {
|
|||
</Form>
|
||||
</EventTypeSingleLayout>
|
||||
|
||||
{slugExistsChildrenDialogOpen.length && (
|
||||
{slugExistsChildrenDialogOpen.length ? (
|
||||
<ManagedEventTypeDialog
|
||||
slugExistsChildrenDialogOpen={slugExistsChildrenDialogOpen}
|
||||
isLoading={formMethods.formState.isSubmitting}
|
||||
|
@ -518,7 +518,7 @@ const EventTypePage = (props: EventTypeSetupProps) => {
|
|||
setSlugExistsChildrenDialogOpen([]);
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
) : null}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue