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