fix: ternary operator with lenght causing 0 (#10090)

pull/10094/head
Peer Richelsen 2023-07-12 14:17:30 +02:00 committed by GitHub
parent c9fc88ddc7
commit 6d413f5721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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}
</>
);
};