Skip to content

Commit

Permalink
update helper function name
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 committed Jun 9, 2020
1 parent 64704b5 commit 75335c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export const getJobConfigFromFormState = (
return jobConfig;
};

function getCamelCase(property: string): string {
function toCamelCase(property: string): string {
const camelCased = property.replace(/_([a-z])/g, function (g) {
return g[1].toUpperCase();
});
Expand Down Expand Up @@ -357,7 +357,7 @@ export function getCloneFormStateFromJobConfig(

for (const key in analysisConfig) {
if (analysisConfig.hasOwnProperty(key)) {
const camelCased = getCamelCase(key);
const camelCased = toCamelCase(key);
// @ts-ignore
resultState[camelCased] = analysisConfig[key];
}
Expand Down

0 comments on commit 75335c1

Please sign in to comment.