Skip to content

Commit

Permalink
fix: add subsite_css class when not undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Oct 1, 2024
1 parent 1112a54 commit db3f80f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/theme/SubsiteClass.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ const SubsiteClass = () => {

return (
<BodyClass
className={cx('subsite', `subsite-${subsite.subsite_css_class?.token}`, {
className={cx('subsite', {
'subsite-root': isSubsiteRoot(location.pathname, subsite),
[`subsite-${subsite.subsite_css_class?.token}`]:
subsite.subsite_css_class?.token,
})}
/>
);
Expand Down

0 comments on commit db3f80f

Please sign in to comment.