From b70729a012335c2f2e1a8ca129c2a2b56be82961 Mon Sep 17 00:00:00 2001 From: Ryan Mathis Date: Mon, 13 Sep 2021 14:36:04 -0700 Subject: [PATCH] updated bundles --- ui/src/app/metadata/hoc/attribute/AttributeBundleApi.js | 4 +--- ui/src/app/metadata/new/NewBundle.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ui/src/app/metadata/hoc/attribute/AttributeBundleApi.js b/ui/src/app/metadata/hoc/attribute/AttributeBundleApi.js index 5abc3d103..fd8651840 100644 --- a/ui/src/app/metadata/hoc/attribute/AttributeBundleApi.js +++ b/ui/src/app/metadata/hoc/attribute/AttributeBundleApi.js @@ -5,13 +5,11 @@ import API_BASE_PATH from '../../../App.constant'; import { DeleteConfirmation } from '../../../core/components/DeleteConfirmation'; import { createNotificationAction, NotificationContext } from '../../../notifications/hoc/Notifications'; -const api = '/custom/entity/bundles'; - export function AttributeBundleApi({ id, children }) { const { dispatch } = React.useContext(NotificationContext); - const { get, put, post, del, response, loading } = useFetch(`/data/bundles.json`, { + const { get, put, post, del, response, loading } = useFetch(`${API_BASE_PATH}/custom/entity/bundles`, { cachePolicy: 'no-cache' }); diff --git a/ui/src/app/metadata/new/NewBundle.js b/ui/src/app/metadata/new/NewBundle.js index 4302b4ada..34bebd2e7 100644 --- a/ui/src/app/metadata/new/NewBundle.js +++ b/ui/src/app/metadata/new/NewBundle.js @@ -15,8 +15,6 @@ import { AttributeBundleApi } from '../hoc/attribute/AttributeBundleApi'; export function NewBundle() { const history = useHistory(); - console.log('hi') - const definition = AttributeBundleDefinition; const [blocking, setBlocking] = React.useState(false); @@ -56,7 +54,7 @@ export function NewBundle() {