From 0bf2d5ebcd297392bad68b1a9a7d2a0f52da838c Mon Sep 17 00:00:00 2001 From: Carlos Mondragon Date: Wed, 10 Oct 2018 16:05:50 -0700 Subject: [PATCH] Extract ApiKeyCount from state. --- public/app/features/api-keys/state/selectors.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/features/api-keys/state/selectors.ts b/public/app/features/api-keys/state/selectors.ts index 8065c252e85..789237ae9a3 100644 --- a/public/app/features/api-keys/state/selectors.ts +++ b/public/app/features/api-keys/state/selectors.ts @@ -1,5 +1,7 @@ import { ApiKeysState } from 'app/types'; +export const getApiKeysCount = (state: ApiKeysState) => state.keys.length; + export const getApiKeys = (state: ApiKeysState) => { const regex = RegExp(state.searchQuery, 'i');