Skip to content

Commit d7d00de

Browse files
committed
fix(content_management): use language code directly in CreateSourceBloc
- Remove unnecessary `.code` accessor when assigning language value - This change ensures that the full language object is used, not just its code
1 parent 86b8cb5 commit d7d00de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/content_management/bloc/create_source/create_source_bloc.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class CreateSourceBloc extends Bloc<CreateSourceEvent, CreateSourceState> {
134134
description: state.description,
135135
url: state.url,
136136
sourceType: state.sourceType!,
137-
language: state.language!.code,
137+
language: state.language!,
138138
createdAt: now,
139139
updatedAt: now,
140140
headquarters: state.headquarters!,

0 commit comments

Comments
 (0)