Skip to content

Commit

Permalink
Added markdown support to change log widget. Fixed version set reques…
Browse files Browse the repository at this point in the history
…ts. (#850)
  • Loading branch information
azaslonov authored Aug 26, 2020
1 parent 2fa612e commit 6d3a8a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h2 data-bind="text: api().displayName"></h2>
<div data-bind="foreach: { data: currentPageLog, as: 'hist' }">
<div class="table-row">
<div class="col-3" data-bind="text: hist.properties.updatedDateTime"></div>
<div class="col-9" data-bind="text: hist.properties.notes"></div>
<div class="col-9" data-bind="markdown: hist.properties.notes"></div>
</div>
</div>
<!-- /ko -->
Expand Down
4 changes: 2 additions & 2 deletions src/services/apiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class ApiService {
const query = "/apis?$filter=isCurrent eq true";
const apisPage = await this.mapiClient.get<Page<ApiContract>>(query);
const result = apisPage.value
.filter(x => x.properties.apiVersionSetId && Utils.getResourceName("api-version-sets", x.properties.apiVersionSetId, "shortId") === versionSetId)
.filter(x => x.properties.apiVersionSetId && Utils.getResourceName("apiVersionSets", x.properties.apiVersionSetId, "shortId") === versionSetId)
.map(x => new Api(x));

return result;
Expand Down Expand Up @@ -239,7 +239,7 @@ export class ApiService {
}

if (apiContract.properties.apiVersionSetId && !apiContract.properties.apiVersionSet) { // Filling the missing version set
const setId = Utils.getResourceName("api-version-sets", apiContract.properties.apiVersionSetId, "shortId");
const setId = Utils.getResourceName("apiVersionSets", apiContract.properties.apiVersionSetId, "shortId");
const apiVersionSetContract = await this.getApiVersionSet(setId);
apiContract.properties.apiVersionSet = apiVersionSetContract;
}
Expand Down

0 comments on commit 6d3a8a6

Please sign in to comment.