Skip to content

Commit

Permalink
Added null safety check in list layout loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Nov 8, 2023
1 parent c7c249e commit bbe8d7a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/widgets/draggable_containers/draggable_list_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,11 @@ class DraggableListLayout extends DraggableLayoutContainer {
'TOP';
}

for (Map<String, dynamic> childData in jsonData['children']) {
for (Map<String, dynamic>? childData in jsonData['children']) {
if (childData == null) {
continue;
}

children.add(nt4ContainerBuilder?.call(childData) ??
DraggableNT4WidgetContainer.fromJson(
dashboardGrid: dashboardGrid,
Expand Down

0 comments on commit bbe8d7a

Please sign in to comment.