mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Extract ApiKeyCount from state.
This commit is contained in:
committed by
Johannes Schill
parent
795b0ca90f
commit
0bf2d5ebcd
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user