diff --git a/crates/compiler/can/src/annotation.rs b/crates/compiler/can/src/annotation.rs index 4bd4068a17..e63d60553a 100644 --- a/crates/compiler/can/src/annotation.rs +++ b/crates/compiler/can/src/annotation.rs @@ -1220,7 +1220,7 @@ fn can_assigned_fields<'a>( ); let label = Lowercase::from(field_name.value); - field_types.insert(label.clone(), Optional(field_type)); + field_types.insert(label.clone(), RigidOptional(field_type)); break 'inner label; }