Skip to content

Commit

Permalink
updated bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Sep 13, 2021
1 parent 8047d03 commit b70729a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions ui/src/app/metadata/hoc/attribute/AttributeBundleApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
});

Expand Down
4 changes: 1 addition & 3 deletions ui/src/app/metadata/new/NewBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -56,7 +54,7 @@ export function NewBundle() {
<React.Fragment>
<Button variant="info" className="mr-2"
type="button"
onClick={() => create(bundle)}
onClick={() => create(bundle, gotoDetail)}
disabled={errors.length > 0 || loading}
aria-label="Save changes to the metadata source. You will return to the dashboard">
<FontAwesomeIcon icon={loading ? faSpinner : faSave} pulse={loading} />&nbsp;
Expand Down

0 comments on commit b70729a

Please sign in to comment.