Skip to content

Commit

Permalink
fix deleted import (#370)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <dxho@amazon.com>
  • Loading branch information
derek-ho authored Apr 17, 2023
1 parent 17b3f71 commit fb7591e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions public/components/custom_panels/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit fb7591e

Please sign in to comment.