Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update helper function name
Browse files Browse the repository at this point in the history
alvarezmelissa87 committed Jun 9, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -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();
});
@@ -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];
}

0 comments on commit 75335c1

Please sign in to comment.