Skip to content

Commit

Permalink
fix(ui): allow using 0 index in getString from array
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Jul 27, 2022
1 parent be2fe5d commit 75f79d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export function getNativeValueFromMarkupArgumentType(value, type) {
if (type) {
if (
type.toLowerCase() === 'number' &&
Number(value) &&
(Number(value) || Number(value) === 0) &&
value.slice(-1) !== '.'
) {
return Number(value)
Expand Down

0 comments on commit 75f79d6

Please sign in to comment.