Преглед изворни кода

Merge pull request #18496 from overleaf/rd-pug-warning-attributes

[web] Fix: "You should not have pug tags with multiple attributes" warning

GitOrigin-RevId: 0adfdf6a130c60966eae3c845011975af7eecc44
Eric Mc Sween пре 2 година
родитељ
комит
92945f504d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      services/web/app/views/layout/language-picker-bootstrap-5.pug

+ 1 - 1
services/web/app/views/layout/language-picker-bootstrap-5.pug

@@ -21,7 +21,7 @@ li.dropdown.dropup.subdued(dropdown).language-picker
 			if !subdomainDetails.hide
 				- let isActive = subdomainDetails.lngCode === currentLngCode
 				li.lngOption
-					a.menu-indent(href=subdomainDetails.url+currentUrlWithQueryParams role="menuitem")(class=isActive ? 'dropdown-item active' : 'dropdown-item')(aria-selected=isActive ? 'true' : 'false')
+					a.menu-indent(href=subdomainDetails.url+currentUrlWithQueryParams, role="menuitem", class=isActive ? 'dropdown-item active' : 'dropdown-item', aria-selected=isActive ? 'true' : 'false')
 						| #{settings.translatedLanguages[subdomainDetails.lngCode]}
 						if subdomainDetails.lngCode === currentLngCode
 							span.material-symbols.dropdown-item-trailing-icon.pull-right(aria-hidden="true") check