Replace .map with .forEach when return value not used. See issue #740 (#1349)

pull/1355/head
ErikOnBike 2023-05-24 16:34:42 +02:00 zatwierdzone przez GitHub
rodzic c4db99f5a3
commit 6144e5eff4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -250,8 +250,8 @@ export default class SlTabGroup extends ShoelaceElement {
this.activeTab = tab;
// Sync active tab and panel
this.tabs.map(el => (el.active = el === this.activeTab));
this.panels.map(el => (el.active = el.name === this.activeTab?.panel));
this.tabs.forEach(el => (el.active = el === this.activeTab));
this.panels.forEach(el => (el.active = el.name === this.activeTab?.panel));
this.syncIndicator();
if (['top', 'bottom'].includes(this.placement)) {