Skip to content

Commit bd139e4

Browse files
committed
fix(edit_topic): handle null exception in state
- Updated EditTopicState to handle null exception. - Prevents potential crashes from null values.
1 parent 5bac7f2 commit bd139e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/content_management/bloc/edit_topic/edit_topic_state.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ final class EditTopicState extends Equatable {
6262
description: description ?? this.description,
6363
iconUrl: iconUrl ?? this.iconUrl,
6464
contentStatus: contentStatus ?? this.contentStatus,
65-
exception: exception,
65+
exception: exception ?? this.exception,
6666
updatedTopic: updatedTopic ?? this.updatedTopic,
6767
);
6868
}

0 commit comments

Comments
 (0)