From 1b6584ba183a4d642fb40c371444d991840f2427 Mon Sep 17 00:00:00 2001 From: JosephVolosin Date: Wed, 8 Jan 2025 09:41:21 -0500 Subject: [PATCH] Add null condition for source/event types to be created --- src/components/modals/ManageGroupsAndTypesModal.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/modals/ManageGroupsAndTypesModal.svelte b/src/components/modals/ManageGroupsAndTypesModal.svelte index 1f0f702711..16e9ad4b44 100644 --- a/src/components/modals/ManageGroupsAndTypesModal.svelte +++ b/src/components/modals/ManageGroupsAndTypesModal.svelte @@ -585,11 +585,11 @@ {#if parsedExternalSourceEventTypeSchema !== undefined}
The following External Source Type(s) will be created
- {#each Object.keys(parsedExternalSourceEventTypeSchema.source_types) as newSourceTypeName} + {#each Object.keys(parsedExternalSourceEventTypeSchema.source_types ?? {}) as newSourceTypeName}
  • {newSourceTypeName}
  • {/each}
    The following External Event Type(s) will be created
    - {#each Object.keys(parsedExternalSourceEventTypeSchema.event_types) as newEventTypeName} + {#each Object.keys(parsedExternalSourceEventTypeSchema.event_types ?? {}) as newEventTypeName}
  • {newEventTypeName}
  • {/each}