added adrFileLocationUrl for adr file read
Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>
This commit is contained in:
@@ -44,11 +44,12 @@ export const AdrReader = (props: {
|
||||
const { entity } = useEntity();
|
||||
const scmIntegrations = useApi(scmIntegrationsApiRef);
|
||||
const adrApi = useApi(adrApiRef);
|
||||
const adrLocationUrl = getAdrLocationUrl(entity, scmIntegrations, adr);
|
||||
const adrLocationUrl = getAdrLocationUrl(entity, scmIntegrations);
|
||||
const adrFileLocationUrl = getAdrLocationUrl(entity, scmIntegrations, adr);
|
||||
|
||||
const { value, loading, error } = useAsync(
|
||||
async () => adrApi.readAdr(adrLocationUrl),
|
||||
[adrLocationUrl],
|
||||
async () => adrApi.readAdr(adrFileLocationUrl),
|
||||
[adrFileLocationUrl],
|
||||
);
|
||||
|
||||
const adrContent = useMemo(() => {
|
||||
|
||||
Reference in New Issue
Block a user