Skip to content

Commit

Permalink
Update index.jsx
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Ursenbach <[email protected]>
  • Loading branch information
kellyjosephprice and erunion authored May 22, 2024
1 parent 05cdb6a commit dc9252a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Variable extends React.Component {
const def = this.props.defaults.filter(Boolean).find(d => d.name === this.getName()) || {};

if (def.default) return def.default;
return this.getName().toUpperCase();
return this.getName()?.toUpperCase() || undefined;
}

getSelectedValue(selected) {
Expand Down

0 comments on commit dc9252a

Please sign in to comment.