From 378a26576a98bf9462c4a1d1c50a92ca256bac1c Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Tue, 18 Oct 2022 10:56:58 -0400
Subject: [PATCH] ISTWCMS-5880: fixing media with location

---
 src/Service/UwNodeFieldValue.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Service/UwNodeFieldValue.php b/src/Service/UwNodeFieldValue.php
index 6e9399cf..bb9a247a 100644
--- a/src/Service/UwNodeFieldValue.php
+++ b/src/Service/UwNodeFieldValue.php
@@ -304,7 +304,6 @@ class UwNodeFieldValue {
         $banner['sources'] = $banner['image']['responsive_sources'];
         $banner['img_element'] = $banner['image']['img_element']['#uri'];
         $banner['alt'] = $banner['image']['alt'];
-        $banner['media_width'] = $media_width_classes ?? NULL;
         unset($banner['image']);
       }
 
@@ -317,6 +316,7 @@ class UwNodeFieldValue {
       'slide_speed' => $node->field_uw_slide_speed->value,
       'style' => $node->field_uw_text_overlay_style->value,
       'transition_speed' => $node->field_uw_transition_speed->value,
+      'media_width' => $media_width_classes ?? NULL,
     ];
 
     return $banners;
-- 
GitLab