fix(utils): remove undefined/null values from the PerFrameFunctionalGroupsSequence in combineFrameInstance. (#3515)

This commit is contained in:
Joe Boccanfuso authored and GitHub committed 2023-07-04 12:33:51 -04:00
1 parent f7b7131d70
commit b5599dde4e
1 file changed
+1
@@ -28,6 +28,7 @@ const combineFrameInstance = (frame, instance) => {
? Object.values(PerFrameFunctionalGroupsSequence[frameNumber - 1])
: []
)
.filter(it => !!it)
.map(it => it[0])
.filter(it => it !== undefined && typeof it === 'object');