Commit bb2a71e
committed
fix(content_management): handle null values in DraftHeadlinesState
- Update DraftHeadlinesState.copyWith to preserve lastPendingDeletionId and snackbarHeadlineTitle when new values are null
- This prevents potential null reference errors and maintains state consistency1 parent 8a7503c commit bb2a71e
File tree
1 file changed
+4
-2
lines changed- lib/content_management/bloc/draft_headlines
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
0 commit comments