From 5745f17947af5957c383d875228637491b3cb45f Mon Sep 17 00:00:00 2001 From: JosephVolosin Date: Wed, 20 Nov 2024 12:16:45 -0500 Subject: [PATCH] Lint fix --- .../external-source/ExternalSourceManager.svelte | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/external-source/ExternalSourceManager.svelte b/src/components/external-source/ExternalSourceManager.svelte index 2149813000..70f6123541 100644 --- a/src/components/external-source/ExternalSourceManager.svelte +++ b/src/components/external-source/ExternalSourceManager.svelte @@ -483,17 +483,21 @@ function doesSourceTypeAndEventTypesExist(externalSource: ExternalSourceJson): boolean { // Check that the External Source Type for the source to-be-uploaded exists - const externalSourceType = $externalSourceTypes.find(sourceType => sourceType.name === externalSource.source.source_type); + const externalSourceType = $externalSourceTypes.find( + sourceType => sourceType.name === externalSource.source.source_type, + ); if (externalSourceType === undefined) { - uploadDisabledMessage = `External Source Type "${externalSource.source.source_type}" is not defined. Please create it!` + uploadDisabledMessage = `External Source Type "${externalSource.source.source_type}" is not defined. Please create it!`; return true; } // Check that all the External Event Types for the source to-be-uploaded exist - const newSourceExternalEventTypes: string[] = Array.from(new Set(externalSource.events.map(event => event.event_type))); + const newSourceExternalEventTypes: string[] = Array.from( + new Set(externalSource.events.map(event => event.event_type)), + ); for (const eventType of newSourceExternalEventTypes) { if ($externalEventTypes.find(eventTypeFromDB => eventTypeFromDB.name === eventType) === undefined) { - uploadDisabledMessage = `External Event Type "${eventType}" is not defined. Please create it!` + uploadDisabledMessage = `External Event Type "${eventType}" is not defined. Please create it!`; return true; } }