mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 21:03:29 +00:00
refactor: remove isNextDay block property
This commit is contained in:
committed by
Carlos Valente
parent
ab8bfbcd59
commit
a98c14406d
@@ -135,7 +135,6 @@ export function createBlockPatch(originalBlock: OntimeBlock, patchBlock: Partial
|
||||
title: makeString(patchBlock.title, originalBlock.title),
|
||||
note: makeString(patchBlock.note, originalBlock.note),
|
||||
entries: patchBlock.entries ?? originalBlock.entries,
|
||||
isNextDay: typeof patchBlock.isNextDay === 'boolean' ? patchBlock.isNextDay : originalBlock.isNextDay,
|
||||
targetDuration: maybeTargetDuration(),
|
||||
colour: makeString(patchBlock.colour, originalBlock.colour),
|
||||
revision: originalBlock.revision,
|
||||
@@ -231,7 +230,6 @@ export function createBlock(patch?: Partial<OntimeBlock>): OntimeBlock {
|
||||
title: patch.title ?? '',
|
||||
note: patch.note ?? '',
|
||||
entries: patch.entries ?? [],
|
||||
isNextDay: patch.isNextDay ?? false,
|
||||
targetDuration: patch.targetDuration ?? null,
|
||||
colour: makeString(patch.colour, ''),
|
||||
custom: patch.custom ?? {},
|
||||
|
||||
@@ -45,7 +45,6 @@ export const demoDb: DatabaseModel = {
|
||||
id: 'block',
|
||||
title: 'Test Block',
|
||||
note: '',
|
||||
isNextDay: false,
|
||||
targetDuration: null,
|
||||
colour: 'hotpink',
|
||||
revision: 0,
|
||||
@@ -212,7 +211,6 @@ export const demoDb: DatabaseModel = {
|
||||
note: '',
|
||||
colour: '',
|
||||
entries: [],
|
||||
isNextDay: false,
|
||||
targetDuration: null,
|
||||
custom: {},
|
||||
revision: 0,
|
||||
@@ -375,7 +373,6 @@ export const demoDb: DatabaseModel = {
|
||||
note: '',
|
||||
colour: '',
|
||||
entries: [],
|
||||
isNextDay: false,
|
||||
targetDuration: null,
|
||||
custom: {},
|
||||
revision: 0,
|
||||
|
||||
@@ -58,7 +58,6 @@ export const block: Omit<OntimeBlock, 'id'> = {
|
||||
title: '',
|
||||
note: '',
|
||||
entries: [],
|
||||
isNextDay: false,
|
||||
targetDuration: null,
|
||||
colour: '',
|
||||
custom: {},
|
||||
|
||||
Reference in New Issue
Block a user