Skip to content

Commit

Permalink
adjust types
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiqueclarke committed May 18, 2023
1 parent 4c337f3 commit 26e4664
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import { EuiFocusTrap, EuiOverlayMask, EuiPanel, EuiSpacer } from '@elastic/eui';
import { EuiFocusTrap, EuiOverlayMask, EuiPanel, EuiSpacer, EuiLoadingSpinner } from '@elastic/eui';
import React, { useRef, useState } from 'react';
import { useSelector } from 'react-redux';
import { get, invert, orderBy } from 'lodash';
Expand Down Expand Up @@ -39,6 +39,10 @@ export const GridItemsByGroup = ({

const data = useFilters();

if (!data) {
return <EuiLoadingSpinner />;
}

const { monitorTypes, locations, projects, tags } = data;
let selectedGroup = {
key: 'location',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ export const mockState: SyntheticsAppState = {
error: null,
loading: false,
loaded: false,
monitorFilterOptions: {
monitorTypes: [],
tags: [],
locations: [],
projects: [],
schedules: [],
},
},
overview: {
pageState: {
Expand Down

0 comments on commit 26e4664

Please sign in to comment.