From 11b0ab247ec28948a6c3465b4cf91934bf2105aa Mon Sep 17 00:00:00 2001 From: Yauheni Prakopchyk Date: Thu, 21 Sep 2023 15:57:28 +0400 Subject: [PATCH] fix: test --- packages/ui/src/composables/useSize.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/composables/useSize.ts b/packages/ui/src/composables/useSize.ts index 710f7ad82d5..be8ae845fb3 100644 --- a/packages/ui/src/composables/useSize.ts +++ b/packages/ui/src/composables/useSize.ts @@ -64,12 +64,12 @@ export const useSizeProps = { sizesConfig: { type: Object as PropType>, - default: () => sizesConfig[getCurrentInstance()?.type.name ?? 'default'], + default: () => sizesConfig[getCurrentInstance()?.type.name ?? 'default'] ?? sizesConfig.default, }, fontSizesConfig: { type: Object as PropType>, - default: () => fontSizesConfig[getCurrentInstance()?.type.name ?? 'default'], + default: () => fontSizesConfig[getCurrentInstance()?.type.name ?? 'default'] ?? fontSizesConfig.default, }, }