feat: create block from rundown empty

This commit is contained in:
Carlos Valente
2025-05-17 14:58:46 +02:00
committed by Carlos Valente
parent 0a44bfe783
commit 67f914bdc0
3 changed files with 20 additions and 6 deletions
+1 -1
View File
@@ -329,7 +329,7 @@ export default function Rundown({ data }: RundownProps) {
};
if (sortableData.length < 1) {
return <RundownEmpty handleAddNew={() => insertAtId({ type: SupportedEntry.Event }, cursor)} />;
return <RundownEmpty handleAddNew={(type: SupportedEntry) => insertAtId({ type }, cursor)} />;
}
// 1. gather presentation options