Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions static/app/stores/groupStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ const storeConfig: GroupStoreDefinition = {
},

mergeItems(items: Item[]) {
const itemsById: Record<string, Item> = items.reduce((acc, item) => {
// @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
const itemsById = items.reduce<Record<string, Item>>((acc, item) => {
acc[item.id] = item;
return acc;
}, {});
Expand Down Expand Up @@ -189,8 +188,7 @@ const storeConfig: GroupStoreDefinition = {
*/
addToFront(items) {
items = toArray(items);
const itemMap: Record<string, Item> = items.reduce((acc, item) => {
// @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
const itemMap = items.reduce<Record<string, Item>>((acc, item) => {
acc[item.id] = item;
return acc;
}, {});
Expand Down
Loading