Skip to content

Commit

Permalink
feat: removed a boolean check in example data code
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleJohnst committed Oct 10, 2024
1 parent 17e1636 commit 59236f7
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ const getValueForParameter = (parameter: ParameterSpec, globalSelectedExample?:
};

const getInitialValueForParameter = (parameter: ParameterSpec, globalSelectedExample?: string) => {
const isRequired = !!parameter.required;

if (!isRequired) return '';
return getValueForParameter(parameter, globalSelectedExample).value;
};

Expand Down

0 comments on commit 59236f7

Please sign in to comment.