From 7928bc4f7fd3e9630bf153fa56ddc904e4450750 Mon Sep 17 00:00:00 2001 From: Thomas Fransolet Date: Fri, 29 Dec 2023 21:27:31 +0100 Subject: [PATCH] Fix contentDTO no resourceType --- .../Section/SubSection/Slider/new_update_image_slider.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Screens/Configurations/Section/SubSection/Slider/new_update_image_slider.dart b/lib/Screens/Configurations/Section/SubSection/Slider/new_update_image_slider.dart index 0abb4d3..a228710 100644 --- a/lib/Screens/Configurations/Section/SubSection/Slider/new_update_image_slider.dart +++ b/lib/Screens/Configurations/Section/SubSection/Slider/new_update_image_slider.dart @@ -61,9 +61,11 @@ Future showNewOrUpdateContentSlider(ContentDTO? inputContentDTO, App if(resource.id == null) { contentDTO.resourceId = null; contentDTO.resourceUrl = null; + contentDTO.resourceType = null; } else { contentDTO.resourceId = resource.id; contentDTO.resourceUrl = resource.url; + contentDTO.resourceType = resource.type; } }, isSmall: true