From 1e63238cac0ea996b2c85d3985378f2966a3c078 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Thu, 24 Jul 2025 07:44:52 +0200 Subject: [PATCH] fix: allow empty string as a cue value --- apps/server/src/api-data/rundown/rundown.service.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/apps/server/src/api-data/rundown/rundown.service.ts b/apps/server/src/api-data/rundown/rundown.service.ts index 0d67cde89..ef7a116c4 100644 --- a/apps/server/src/api-data/rundown/rundown.service.ts +++ b/apps/server/src/api-data/rundown/rundown.service.ts @@ -9,7 +9,6 @@ import { isOntimeEvent, OntimeBlock, OntimeEntry, - OntimeEvent, PatchWithId, RefetchKey, Rundown, @@ -101,11 +100,6 @@ export async function editEntry(patch: PatchWithId): Promise { throw new Error('Entry not found'); } - // we dont allow the user to change the cue to empty string - if ((patch as Partial)?.cue === '') { - throw new Error('Cue value invalid'); - } - // we cannot allow patching to a different type if (patch?.type && currentEntry.type !== patch.type) { throw new Error('Invalid event type');