From 995dcd97aae256b9e7d603af9fdd5252683b8949 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Mon, 27 Sep 2021 16:37:18 +0200 Subject: [PATCH] Temporarily allow only number props to be sequenced --- theatre/core/src/sheetObjects/SheetObjectTemplate.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/theatre/core/src/sheetObjects/SheetObjectTemplate.ts b/theatre/core/src/sheetObjects/SheetObjectTemplate.ts index bc076b6..5bda7da 100644 --- a/theatre/core/src/sheetObjects/SheetObjectTemplate.ts +++ b/theatre/core/src/sheetObjects/SheetObjectTemplate.ts @@ -66,10 +66,7 @@ export default class SheetObjectTemplate { return new SheetObject(sheet, this, nativeObject) } - overrideConfig( - nativeObject: unknown, - config: SheetObjectConfig<$IntentionalAny>, - ) { + overrideConfig(config: SheetObjectConfig<$IntentionalAny>) { this._config.setState(config) } @@ -149,10 +146,7 @@ export default class SheetObjectTemplate { continue } const defaultValue = get(defaults, pathToProp) - if ( - typeof defaultValue === 'undefined' || - typeof defaultValue === 'object' - ) { + if (typeof defaultValue !== 'number') { continue }