content/static: run prettier on table.js
Trust: Jamal Carvalho
Run-TryBot: Jamal Carvalho
@@ -36,7 +36,9 @@ export class ExpandableRowsTableController {
handleToggleClick(e) {
let target = e.currentTarget;
if (!target?.hasAttribute('aria-expanded')) {
- target = this.table.querySelector(`button[aria-controls="${target?.getAttribute('aria-controls')}"]`);
+ target = this.table.querySelector(
+ `button[aria-controls="${target?.getAttribute('aria-controls')}"]`
+ );
}
const isExpanded = target?.getAttribute('aria-expanded') === 'true';
target?.setAttribute('aria-expanded', isExpanded ? 'false' : 'true');
@@ -56,8 +58,7 @@ export class ExpandableRowsTableController {
if (isExpanded) {
target?.classList.add('visible');
target?.classList.remove('hidden');
- }
- else {
+ } else {
target?.classList.add('hidden');
target?.classList.remove('visible');
}
