From cda62b902d2c13f0c59802af87138335f1393117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=A3=E8=93=A6?= Date: Wed, 23 Nov 2022 10:15:44 +0800 Subject: [PATCH] fix(core): take result is possible to be undefined (#3562) --- packages/core/src/models/Query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/models/Query.ts b/packages/core/src/models/Query.ts index 07ba144f882..a86bb411069 100644 --- a/packages/core/src/models/Query.ts +++ b/packages/core/src/models/Query.ts @@ -52,7 +52,7 @@ export class Query { } } - take(): GeneralField + take(): GeneralField | undefined take( getter: (field: GeneralField, address: FormPath) => Result ): Result