From 6e38936ec5619d149b104677f191950a51edf2bf Mon Sep 17 00:00:00 2001 From: Thomas Fransolet Date: Thu, 1 Jul 2021 17:29:04 +0200 Subject: [PATCH] Fixes (all filter per default + init images for geopoint) --- .../Section/SubSection/Map/showNewOrUpdateGeoPoint.dart | 1 + lib/Screens/Resources/resource_body_grid.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/Screens/Configurations/Section/SubSection/Map/showNewOrUpdateGeoPoint.dart b/lib/Screens/Configurations/Section/SubSection/Map/showNewOrUpdateGeoPoint.dart index c23373b..2a1ad31 100644 --- a/lib/Screens/Configurations/Section/SubSection/Map/showNewOrUpdateGeoPoint.dart +++ b/lib/Screens/Configurations/Section/SubSection/Map/showNewOrUpdateGeoPoint.dart @@ -18,6 +18,7 @@ void showNewOrUpdateGeoPoint(GeoPointDTO inputGeoPointDTO, Function getResult, A } else { geoPointDTO.title = []; geoPointDTO.description = []; + geoPointDTO.images = []; ManagerAppContext managerAppContext = appContext.getContext(); managerAppContext.selectedConfiguration.languages.forEach((element) { diff --git a/lib/Screens/Resources/resource_body_grid.dart b/lib/Screens/Resources/resource_body_grid.dart index 0e8762b..869ef7d 100644 --- a/lib/Screens/Resources/resource_body_grid.dart +++ b/lib/Screens/Resources/resource_body_grid.dart @@ -33,6 +33,7 @@ class _ResourceBodyGridState extends State { void initState() { resourcesToShow = widget.resources; filterType = [resource_types[0], resource_types[1], resource_types[2], resource_types[3]]; + selectedTypes = resource_types; super.initState(); }