Skip to content

Conversation

@Deluze
Copy link
Contributor

@Deluze Deluze commented Aug 6, 2020

No description provided.

getDefaultValueFromType(type, defaultModelValue) {
let defaultValue;

if (type === 'string') {
Copy link
Contributor

Choose a reason for hiding this comment

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

switch case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There wouldn't be a difference, because each case would be different in this case. And not every value being checked is of type string (the array function call)

@Deluze Deluze merged commit 39fef66 into master Aug 13, 2020
@koenhoeijmakers koenhoeijmakers deleted the KCI-114 branch September 2, 2020 07:35
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.

4 participants