🐛 Fix crash if integration is not defined

This commit is contained in:
Manuel Ruwe
2022-12-05 20:04:08 +01:00
parent 8a813eee13
commit b7bb1302e4
3 changed files with 29 additions and 6 deletions

View File

@@ -12,7 +12,8 @@ interface IntegrationTabProps {
export const IntegrationTab = ({ form }: IntegrationTabProps) => {
const { t } = useTranslation('');
const hasIntegrationSelected = form.values.integration !== null;
const hasIntegrationSelected =
form.values.integration && Object.keys(form.values.integration.properties).length;
return (
<Tabs.Panel value="integration" pt="lg">