Skip to content

Commit

Permalink
Add null condition for source/event types to be created
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephVolosin committed Jan 8, 2025
1 parent 8614e5e commit 1b6584b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/modals/ManageGroupsAndTypesModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -585,11 +585,11 @@
{#if parsedExternalSourceEventTypeSchema !== undefined}
<div class="to-be-created st-typography-body">
<div class="to-be-created-header">The following External Source Type(s) will be created</div>
{#each Object.keys(parsedExternalSourceEventTypeSchema.source_types) as newSourceTypeName}
{#each Object.keys(parsedExternalSourceEventTypeSchema.source_types ?? {}) as newSourceTypeName}
<li class="st-typograph-body">{newSourceTypeName}</li>
{/each}
<div class="to-be-created-header">The following External Event Type(s) will be created</div>
{#each Object.keys(parsedExternalSourceEventTypeSchema.event_types) as newEventTypeName}
{#each Object.keys(parsedExternalSourceEventTypeSchema.event_types ?? {}) as newEventTypeName}
<li class="st-typograph-body">{newEventTypeName}</li>
{/each}
</div>
Expand Down

0 comments on commit 1b6584b

Please sign in to comment.