Skip to content

Commit

Permalink
use leading underscore for parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
melange396 authored Dec 4, 2024
1 parent 83d9693 commit 8df08db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deriveLinkDefaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ export function initialLoader(datasets: ILinkConfig['datasets']) {
return Promise.all(resolvedDataSets).then((data) => {
const cleaned = data.filter((d): d is DataSet => d != null);
cleaned.forEach((d) => {
if (d.params && !Array.isArray(d.params) && d.params.custom_title) {
if (d.params && !Array.isArray(d.params) && d.params._custom_title) {
// use custom title string if provided in encoded parameters
d.title = d.params.custom_title;
d.title = d.params._custom_title;
} else if (d.params && !Array.isArray(d.params) && d.params._endpoint) {
// otherwise, construct title from relevant parameters
/* eslint-disable @typescript-eslint/restrict-template-expressions */
Expand Down

0 comments on commit 8df08db

Please sign in to comment.