From c49cd90dcee3366fd9ad4aae8885f01174be572b Mon Sep 17 00:00:00 2001 From: Maya Raman Date: Thu, 15 Feb 2024 12:00:53 -0500 Subject: [PATCH] Adding Class Option back to Image Component (#1011) --- src/components/Image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Image.js b/src/components/Image.js index b54e11a0b..63bd611e7 100644 --- a/src/components/Image.js +++ b/src/components/Image.js @@ -13,7 +13,7 @@ const Image = ({ nodeData, className }) => { const widthOption = getNestedValue(['options', 'width'], nodeData); let height = getNestedValue(['options', 'height'], nodeData); const loading = getNestedValue(['options', 'loading'], nodeData); - const directiveClass = getNestedValue(['options', 'directiveClass'], nodeData); + const directiveClass = getNestedValue(['options', 'class'], nodeData); let imgSrc = getNestedValue(['argument', 0, 'value'], nodeData); const altText = getNestedValue(['options', 'alt'], nodeData) || imgSrc;