Kaynağa Gözat

Extract ApiKeyCount from state.

Carlos Mondragon 7 yıl önce
ebeveyn
işleme
0bf2d5ebcd

+ 2 - 0
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');