From 619a20f9abc771da01e2838815a93b5770742f67 Mon Sep 17 00:00:00 2001 From: emanuel-sol Date: Fri, 14 Oct 2022 11:52:54 -0400 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F=20Make=20pagination?= =?UTF-8?q?=20strategy=20not=20selectable=20in=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/composables/useStrategies.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/composables/useStrategies.ts b/src/composables/useStrategies.ts index b6f33bd2218..40151d51aac 100644 --- a/src/composables/useStrategies.ts +++ b/src/composables/useStrategies.ts @@ -41,6 +41,11 @@ export function useStrategies() { 'strategies' ); + const index = strategies.value.findIndex( + elem => elem['id'] === 'pagination' + ); + if (index) strategies.value.splice(index, 1); + loadingStrategies.value = false; } From 3e0102a0ddfb84fccc8e2c1ece318b43df2d30f8 Mon Sep 17 00:00:00 2001 From: Emanuel <34749913+emanuel-sol@users.noreply.github.com> Date: Thu, 20 Oct 2022 01:15:44 -0400 Subject: [PATCH 2/2] Update src/composables/useStrategies.ts Co-authored-by: Sam <51686767+samuveth@users.noreply.github.com> --- src/composables/useStrategies.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/composables/useStrategies.ts b/src/composables/useStrategies.ts index 40151d51aac..c2445b37628 100644 --- a/src/composables/useStrategies.ts +++ b/src/composables/useStrategies.ts @@ -41,10 +41,9 @@ export function useStrategies() { 'strategies' ); - const index = strategies.value.findIndex( - elem => elem['id'] === 'pagination' + strategies.value = strategies.value.filter( + strategy => strategy.id !== 'pagination' ); - if (index) strategies.value.splice(index, 1); loadingStrategies.value = false; }