From c2672ed5b64edce818ff7cf8344dde73f6279de2 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 4 May 2026 22:10:40 -0400 Subject: [PATCH] Fixed an issue where language flags would not show in Site Settings #7116 had a fix for the language icons in Site Settings, it worked for a dev build but apparently failed at runtime. This PR should fix it but I will test the CI build before confirming... --- .../ClientSide/Dnn.React.Common/src/Flag/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dnn.AdminExperience/ClientSide/Dnn.React.Common/src/Flag/index.jsx b/Dnn.AdminExperience/ClientSide/Dnn.React.Common/src/Flag/index.jsx index 3895cf6569b..68a2d0ebee5 100644 --- a/Dnn.AdminExperience/ClientSide/Dnn.React.Common/src/Flag/index.jsx +++ b/Dnn.AdminExperience/ClientSide/Dnn.React.Common/src/Flag/index.jsx @@ -42,11 +42,11 @@ function Flag({ culture = "", onClick, title }) { useEffect(() => { try { - setFlagUrl(require(`./img/flags/${culture}.png`).default); + setFlagUrl(require(`./img/flags/${culture}.png`)); setIsFallback(false); } catch { try { - setFlagUrl(require("./img/flags/none.png").default); + setFlagUrl(require("./img/flags/none.png")); setIsFallback(true); } catch { setFlagUrl(undefined);