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() {