diff --git a/public/components/custom_panels/home.tsx b/public/components/custom_panels/home.tsx index 6218e4c654..0714b56303 100644 --- a/public/components/custom_panels/home.tsx +++ b/public/components/custom_panels/home.tsx @@ -32,7 +32,7 @@ import { CustomPanelTable } from './custom_panel_table'; import { CustomPanelView } from './custom_panel_view'; import { CustomPanelViewSO } from './custom_panel_view_so'; import { isNameValid } from './helpers/utils'; -import { fetchPanels } from './redux/panel_slice'; +import { fetchPanels, uuidRx } from './redux/panel_slice'; // import { ObjectFetcher } from '../common/objectFetcher'; @@ -137,8 +137,6 @@ export const Home = ({ }); }; - const isUuid = (id) => !!id.match(uuidRx); - const fetchSavedObjectPanel = async (id: string) => { const soPanel = await coreRefs.savedObjectsClient?.get(CUSTOM_PANELS_SAVED_OBJECT_TYPE, id); return savedObjectToCustomPanel(soPanel);