From 864eb8cfbb1501c931e7536795f0f8b8144ef897 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 31 Aug 2023 10:43:57 -0700 Subject: [PATCH] Fix duplicate additionalClassNames --- src/components/widgets/widget/container.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/widgets/widget/container.jsx b/src/components/widgets/widget/container.jsx index 42d049486..f06ce6cf2 100644 --- a/src/components/widgets/widget/container.jsx +++ b/src/components/widgets/widget/container.jsx @@ -9,7 +9,10 @@ export function getAllClasses(options, additionalClassNames = '') { if (options?.style?.header === "boxedWidgets") { if (options?.style?.cardBlur !== undefined) { // eslint-disable-next-line no-param-reassign - additionalClassNames = additionalClassNames.concat(additionalClassNames, ` backdrop-blur${options.style.cardBlur.length ? '-' : ""}${options.style.cardBlur}`) + additionalClassNames = [ + additionalClassNames, + `backdrop-blur${options.style.cardBlur.length ? '-' : ""}${options.style.cardBlur}` + ].join(' ') } return classNames(