Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/na addtypes to parameters #11

Merged
merged 2 commits into from Apr 16, 2022

Conversation

gabitanalla
Copy link
Contributor

No description provided.

Copy link
Contributor

@hide-on-bush-x hide-on-bush-x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing job!

@@ -48,7 +48,8 @@ export const RestMethod = ({
};

const onValueChange = (key: string, value: string) => {
setCustomParameters({ ...customParameters, [key]: value });
const parameter = parameters.filter(parameter => parameter['name'] = key)
setCustomParameters({ ...customParameters, [key]: parameter.dataType == 'string' ? value : Number(value)});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this works? I didn't know that notation
doing +value should just work but that's okay too

@gabitanalla gabitanalla merged commit 6be31fb into master Apr 16, 2022
@H34D H34D deleted the feature/na-addtypes-to-parameters branch July 22, 2022 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants