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

This commit is contained in:
Joe Boccanfuso 2023-07-04 12:33:51 -04:00 committed by GitHub
parent f7b7131d70
commit b5599dde4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');