File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
views/Calendar/components Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ export const GridEventSchema = CoreEventSchema.extend({
15
15
} ) ;
16
16
17
17
export const SomedayEventSchema = CoreEventSchema . extend ( {
18
- _id : z . string ( ) ,
19
18
order : z . number ( ) ,
20
19
isSomeday : z . literal ( true ) ,
21
20
} ) ;
Original file line number Diff line number Diff line change @@ -373,6 +373,10 @@ export const useSidebarActions = (
373
373
if ( ! event ) return ;
374
374
375
375
let _event = { ...event } ;
376
+ // We need to provide it to pass zod validation.
377
+ // Order is already corrected after the event is submitted
378
+ // so its okay to provide any random int (hence -1)
379
+ _event . order = - 1 ;
376
380
377
381
if ( ! _event . startDate || ! _event . endDate ) {
378
382
// This probably means we are creating a new event, hence why we don't have start/end dates
Original file line number Diff line number Diff line change @@ -59,10 +59,7 @@ export const StyledNewSomedayEvent = styled.div<Props>`
59
59
border-radius: 2px;
60
60
color: ${ ( { theme } ) => theme . color . text . dark } ;
61
61
height: ${ SOMEDAY_EVENT_HEIGHT } px;
62
- filter: brightness(
63
- ${ ( { isDragging, isFocused } ) =>
64
- isFocused && ! isDragging ? "160%" : "100%" }
65
- );
62
+ filter: brightness(${ ( { isFocused } ) => ( isFocused ? "160%" : "100%" ) } );
66
63
margin-bottom: 2px;
67
64
opacity: ${ ( { isDragging, isOverGrid } ) => {
68
65
if ( isDragging && isOverGrid ) return 0 ;
You can’t perform that action at this time.
0 commit comments