|
|
@ -10,6 +10,7 @@ if (typeof window !== 'undefined') {
|
|
|
|
const mapper = new Morph({
|
|
|
|
const mapper = new Morph({
|
|
|
|
types: {
|
|
|
|
types: {
|
|
|
|
bool: v => {
|
|
|
|
bool: v => {
|
|
|
|
|
|
|
|
if (v == null) return undefined
|
|
|
|
if (v === 'false') return false
|
|
|
|
if (v === 'false') return false
|
|
|
|
return Boolean(v)
|
|
|
|
return Boolean(v)
|
|
|
|
}
|
|
|
|
}
|
|
|
|