Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephVolosin committed Nov 27, 2024
1 parent 29d7b70 commit 2fba232
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/components/external-source/ExternalSourceManager.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -372,18 +372,19 @@
async function onFormSubmit(_e: SubmitEvent) {
if (parsedExternalSource && file) {
const requestResponse: { createExternalSource: ExternalSourceSlim, upsertDerivationGroup: { name: string } | null } | undefined =
await effects.createExternalSource(
$sourceTypeField.value,
$derivationGroupField.value,
$startTimeDoyField.value,
$endTimeDoyField.value,
parsedExternalSource.events,
parsedExternalSource.source.key,
parsedExternalSource.source.attributes,
$validAtDoyField.value,
user,
);
const requestResponse:
| { createExternalSource: ExternalSourceSlim; upsertDerivationGroup: { name: string } | null }
| undefined = await effects.createExternalSource(
$sourceTypeField.value,
$derivationGroupField.value,
$startTimeDoyField.value,
$endTimeDoyField.value,
parsedExternalSource.events,
parsedExternalSource.source.key,
parsedExternalSource.source.attributes,
$validAtDoyField.value,
user,
);
// Following a successful mutation...
if (requestResponse !== undefined) {
const { createExternalSource: createExternalSourceResponse } = requestResponse;
Expand Down

0 comments on commit 2fba232

Please sign in to comment.