Skip to content

Commit 2b02a9a

Browse files
committed
feat: stabilize notification order during notification interactions
Signed-off-by: Adam Setch <[email protected]>
1 parent 867d299 commit 2b02a9a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/renderer/utils/notifications/notifications.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ export function stabilizeNotificationsOrder(
167167
// Non-repository grouping: assign sequential order across all notifications
168168
let orderIndex = 0;
169169

170-
notifications.forEach((accountNotifications) => {
171-
accountNotifications.notifications.forEach((notification) => {
170+
for (const accountNotifications of notifications) {
171+
for (const notification of accountNotifications.notifications) {
172172
notification.order = orderIndex++;
173-
});
174-
});
173+
}
174+
}
175175
}
176176
}

0 commit comments

Comments
 (0)