diff --git a/apps/client/src/features/app-settings/panel/automations-panel/automationUtils.ts b/apps/client/src/features/app-settings/panel/automations-panel/automationUtils.ts index 4b90166a7..64d650e49 100644 --- a/apps/client/src/features/app-settings/panel/automations-panel/automationUtils.ts +++ b/apps/client/src/features/app-settings/panel/automations-panel/automationUtils.ts @@ -36,6 +36,12 @@ const staticSelectProperties = [ { value: 'eventNow.colour', label: 'Colour' }, ]; +const staticNextSelectProperties = [ + { value: 'eventNow.id', label: 'Next ID' }, + { value: 'eventNow.title', label: 'Next Title' }, + { value: 'eventNow.cue', label: 'Next Cue' }, +]; + type SelectableField = { value: string; // string encodes path in runtime state object label: string; @@ -48,6 +54,11 @@ export function makeFieldList(customFields: CustomFields): SelectableField[] { value: `eventNow.custom.${key}`, label: `Custom: ${label}`, })), + ...staticNextSelectProperties, + ...Object.entries(customFields).map(([key, { label }]) => ({ + value: `eventNext.custom.${key}`, + label: `Next custom: ${label}`, + })), ]; }