Temporarily allow only number props to be sequenced
This commit is contained in:
parent
3f0556b9eb
commit
995dcd97aa
1 changed files with 2 additions and 8 deletions
|
@ -66,10 +66,7 @@ export default class SheetObjectTemplate {
|
||||||
return new SheetObject(sheet, this, nativeObject)
|
return new SheetObject(sheet, this, nativeObject)
|
||||||
}
|
}
|
||||||
|
|
||||||
overrideConfig(
|
overrideConfig(config: SheetObjectConfig<$IntentionalAny>) {
|
||||||
nativeObject: unknown,
|
|
||||||
config: SheetObjectConfig<$IntentionalAny>,
|
|
||||||
) {
|
|
||||||
this._config.setState(config)
|
this._config.setState(config)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,10 +146,7 @@ export default class SheetObjectTemplate {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
const defaultValue = get(defaults, pathToProp)
|
const defaultValue = get(defaults, pathToProp)
|
||||||
if (
|
if (typeof defaultValue !== 'number') {
|
||||||
typeof defaultValue === 'undefined' ||
|
|
||||||
typeof defaultValue === 'object'
|
|
||||||
) {
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue