We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16b7dc6 commit 08dcf83Copy full SHA for 08dcf83
src/globalApi/DetectFacesTasks.ts
@@ -90,7 +90,7 @@ export class DetectSingleFaceTask extends DetectFacesTaskBase<FaceDetection | un
90
private runAndExtendWithFaceDetection(): Promise<WithFaceDetection<{}>> {
91
return new Promise<WithFaceDetection<{}>>(async res => {
92
const detection = await this.run()
93
- return detection ? res(extendWithFaceDetection<{}>({}, detection)) : null
+ return res(detection ? extendWithFaceDetection<{}>({}, detection) : undefined)
94
})
95
}
96
0 commit comments