From 90955638c5e3671c72996fe6831b4bb90bd666dc Mon Sep 17 00:00:00 2001 From: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com> Date: Tue, 22 Mar 2022 15:13:17 +0600 Subject: [PATCH] Vacancy search fix (#1192) Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com> --- packages/core/src/storage.ts | 7 ++++--- .../src/components/Vacancies.svelte | 18 +++++++++--------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/packages/core/src/storage.ts b/packages/core/src/storage.ts index f91bff1259..d36c7d016a 100644 --- a/packages/core/src/storage.ts +++ b/packages/core/src/storage.ts @@ -49,7 +49,8 @@ export type DocumentQuery = { /** * @public */ -export type ToClassRefT = T[P] extends Ref | null ? Ref> | [Ref>, Lookup] : never +export type ToClassRefT = T[P] extends Ref | null | undefined ? Ref> | [Ref>, Lookup] : never + /** * @public */ @@ -65,7 +66,7 @@ export type RefKeys = Pick> /** * @public */ -export type NullableRef = Ref | null +export type NullableRef = Ref | null | undefined /** * @public @@ -123,7 +124,7 @@ export enum SortingOrder { * @public */ export type RefsAsDocs = { - [P in keyof T]: T[P] extends Ref | null ? (T extends X ? X : X | WithLookup) : AttachedDoc[] + [P in keyof T]: T[P] extends Ref | null | undefined ? (T extends X ? X : X | WithLookup) : AttachedDoc[] } /** diff --git a/plugins/recruit-resources/src/components/Vacancies.svelte b/plugins/recruit-resources/src/components/Vacancies.svelte index 806fae3cc8..bfbfc434a4 100644 --- a/plugins/recruit-resources/src/components/Vacancies.svelte +++ b/plugins/recruit-resources/src/components/Vacancies.svelte @@ -14,7 +14,7 @@ -->