Skip to content

Commit 5873158

Browse files
🛠️ apply pre-commit fixes
1 parent 835e88f commit 5873158

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

static/app/stores/groupStore.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const storeConfig: GroupStoreDefinition = {
103103
loadInitialData(items) {
104104
this.reset();
105105

106-
const itemIds = new Set<string>();
106+
const itemIds = new Set<string>();
107107
items.forEach(item => {
108108
itemIds.add(item.id);
109109
this.items.push(item);
@@ -119,7 +119,9 @@ const itemIds = new Set<string>();
119119
},
120120

121121
mergeItems(items: Item[]) {
122-
const itemsById = items.filter(item => item && item.id).reduce((acc, item) => ({...acc, [item.id]: item}), {});
122+
const itemsById = items
123+
.filter(item => item && item.id)
124+
.reduce((acc, item) => ({...acc, [item.id]: item}), {});
123125

124126
// Merge these items into the store and return a mapping of any that aren't already in the store
125127
this.items.forEach((item, itemIndex) => {

0 commit comments

Comments
 (0)