From fd7ccb4a5ba8d6dc27e9d01beb4ec1bdef697696 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Tue, 9 Sep 2025 15:55:18 +0200 Subject: [PATCH] refactor: add default value to secondary source --- apps/client/src/views/timer/timer.options.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/client/src/views/timer/timer.options.ts b/apps/client/src/views/timer/timer.options.ts index ca7a3238b..e44d311b4 100644 --- a/apps/client/src/views/timer/timer.options.ts +++ b/apps/client/src/views/timer/timer.options.ts @@ -25,10 +25,12 @@ const timerDisplayOptions: SelectOption[] = [ export const getTimerOptions = (timeFormat: string, customFields: CustomFields): ViewOption[] => { const mainOptions = makeOptionsFromCustomFields(customFields, [ + { value: 'none', label: 'None' }, { value: 'title', label: 'Title' }, { value: 'note', label: 'Note' }, ]); const secondaryOptions = makeOptionsFromCustomFields(customFields, [ + { value: 'none', label: 'None' }, { value: 'title', label: 'Title' }, { value: 'note', label: 'Note' }, ]); @@ -84,7 +86,7 @@ export const getTimerOptions = (timeFormat: string, customFields: CustomFields): description: 'Select the data source for the main text', type: 'option', values: mainOptions, - defaultValue: 'Title', + defaultValue: 'title', }, { id: 'secondary-src', @@ -92,7 +94,7 @@ export const getTimerOptions = (timeFormat: string, customFields: CustomFields): description: 'Select the data source for the secondary text', type: 'option', values: secondaryOptions, - defaultValue: '', + defaultValue: 'none', }, ], },