Skip to content

Commit

Permalink
fix API call for data connection page
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <dxho@amazon.com>
  • Loading branch information
derek-ho committed Sep 14, 2023
1 parent 0f4b844 commit 0de9617
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
EuiTabs,
} from '@elastic/eui';
import React, { useEffect, useState } from 'react';
import { DATASOURCES_BASE } from '../../../../common/constants/shared';
import { DATACONNECTIONS_BASE } from '../../../../common/constants/shared';

interface DatasourceDetails {
allowedRoles: string[];
Expand All @@ -38,7 +38,7 @@ export const DataConnection = (props: any) => {
});

useEffect(() => {
http.get(`${DATASOURCES_BASE}/${dataSource}`).then((data) =>
http.get(`${DATACONNECTIONS_BASE}/${dataSource}`).then((data) =>
setDatasourceDetails({
allowedRoles: data.allowedRoles,
name: data.name,
Expand Down

0 comments on commit 0de9617

Please sign in to comment.