Skip to content

Commit 8d82b0d

Browse files
frano-mclaude
andcommitted
fix: rename renderCurlDownload to renderCohortCurlDownload and update JSDoc (#4744)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ff87516 commit 8d82b0d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/viewModelBuilders/azul/anvil-cmg/common/viewModelBuilders.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,12 +1864,12 @@ export const renderWhenUnAuthenticated = (
18641864
};
18651865

18661866
/**
1867-
* Renders dataset export-related components when the given dataset has NRES consent group.
1867+
* Renders cohort curl download component when the current query includes NRES or Unrestricted access consent groups.
18681868
* @param _ - Unused.
18691869
* @param viewContext - View context.
18701870
* @returns model to be used as props for the ConditionalComponent component.
18711871
*/
1872-
export const renderCurlDownload = (
1872+
export const renderCohortCurlDownload = (
18731873
_: unknown,
18741874
viewContext: ViewContext<DatasetsResponse>
18751875
): ComponentProps<typeof C.ConditionalComponent> => {

site-config/anvil-cmg/dev/export/export.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export const exportConfig: ExportConfig = {
218218
} as ComponentConfig<typeof C.ExportMethod>,
219219
],
220220
component: C.ConditionalComponent,
221-
viewBuilder: V.renderCurlDownload,
221+
viewBuilder: V.renderCohortCurlDownload,
222222
},
223223
{
224224
component: C.ExportMethod,

0 commit comments

Comments
 (0)