From 67dbfb16e129027d11ea9b6c32b320dac53aec4e Mon Sep 17 00:00:00 2001 From: Padreug Date: Thu, 21 May 2026 00:02:26 +0200 Subject: [PATCH] fix(preferences): null-guard DropdownMenuRadioGroup handlers Reka UI tightened model-value's type to AcceptableValue, which includes null. The four inline (v: string) => ... handlers in PreferencesRow.vue no longer satisfied the prop's expected signature, breaking TS at the standalone-app build step (forum-app, others). Drop the string annotation, guard the null case, and cast on the forward call to preserve the intended narrowing. --- src/components/layout/PreferencesRow.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/layout/PreferencesRow.vue b/src/components/layout/PreferencesRow.vue index 717339b..0acfca3 100644 --- a/src/components/layout/PreferencesRow.vue +++ b/src/components/layout/PreferencesRow.vue @@ -52,7 +52,7 @@ function notImplemented() { {{ t('common.nav.theme') }} - + {{ t('common.nav.themeLight') }} {{ t('common.nav.themeDark') }} {{ t('common.nav.themeSystem') }} @@ -71,7 +71,7 @@ function notImplemented() { {{ t('common.nav.language') }} - + {{ l.flag }}{{ l.name }} @@ -106,7 +106,7 @@ function notImplemented() { - + {{ t('common.nav.themeLight') }} {{ t('common.nav.themeDark') }} {{ t('common.nav.themeSystem') }} @@ -129,7 +129,7 @@ function notImplemented() { - + {{ l.flag }}{{ l.name }}