mirror of
https://github.com/strapi/strapi.git
synced 2025-10-26 23:51:10 +00:00
Update fieldType comparison operator to strict
This commit is contained in:
parent
b3b2b32dd8
commit
422530ceed
@ -469,7 +469,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Check if the value is a valid candidate to be converted to a number value
|
// Check if the value is a valid candidate to be converted to a number value
|
||||||
if (fieldType != 'string') {
|
if (fieldType !== 'string') {
|
||||||
formattedValue = isNumeric(value)
|
formattedValue = isNumeric(value)
|
||||||
? _.toNumber(value)
|
? _.toNumber(value)
|
||||||
: value;
|
: value;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user