From 81f946d6f28023c93e2bf1b54e1ab50cbb8e9426 Mon Sep 17 00:00:00 2001 From: anabellabuckvar <41971124+anabellabuckvar@users.noreply.github.com> Date: Tue, 16 Apr 2024 15:05:17 -0400 Subject: [PATCH] DOP-4945 reinstate slice --- src/services/slack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/slack.ts b/src/services/slack.ts index 02d731165..c6d81c8b3 100644 --- a/src/services/slack.ts +++ b/src/services/slack.ts @@ -290,7 +290,7 @@ export class SlackConnector implements ISlackConnector { //'[ERROR] no more than 100 items allowed [json-pointer:/view/blocks/0/element/options]' if (reposToShow.length > 100) { - reposToShow = reposToShow.sort().reverse(); + reposToShow = reposToShow.sort().reverse().splice(0, 150); } //sort versions like so: 4.1, 4.2, 4.11