From 679629def80d52e8fe48a12e90463d49d81d4bd4 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Sun, 10 Apr 2022 20:16:32 +0200 Subject: [PATCH] Clarify a line https://github.com/theatre-js/theatre/pull/118#discussion_r846634812 --- theatre/core/src/sheetObjects/SheetObjectTemplate.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/theatre/core/src/sheetObjects/SheetObjectTemplate.ts b/theatre/core/src/sheetObjects/SheetObjectTemplate.ts index 0ee0f0d..dee21fd 100644 --- a/theatre/core/src/sheetObjects/SheetObjectTemplate.ts +++ b/theatre/core/src/sheetObjects/SheetObjectTemplate.ts @@ -143,7 +143,9 @@ export default class SheetObjectTemplate { const propConfig = getPropConfigByPath(this.config, pathToProp) - if (!propConfig || !isPropConfSequencable(propConfig)) continue + const isSequencable = propConfig && isPropConfSequencable(propConfig) + + if (!isSequencable) continue arrayOfIds.push({pathToProp, trackId: trackId!}) }