Skip to content

Commit 7e4add7

Browse files
authored
Fixed heading IDs and anchor generation logic. Fixed default value for "enableConsole" option in operation details. (#359)
1 parent 872140a commit 7e4add7

File tree

4 files changed

+30
-30
lines changed

4 files changed

+30
-30
lines changed

package-lock.json

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@
5959
"webpack-merge": "^4.2.2"
6060
},
6161
"dependencies": {
62-
"@paperbits/azure": "0.1.181",
63-
"@paperbits/common": "0.1.181",
64-
"@paperbits/core": "0.1.181",
65-
"@paperbits/prosemirror": "0.1.181",
66-
"@paperbits/styles": "0.1.181",
62+
"@paperbits/azure": "0.1.183",
63+
"@paperbits/common": "0.1.183",
64+
"@paperbits/core": "0.1.183",
65+
"@paperbits/prosemirror": "0.1.183",
66+
"@paperbits/styles": "0.1.183",
6767
"@webcomponents/webcomponentsjs": "^2.4.0",
6868
"adal-vanilla": "^1.0.18",
6969
"applicationinsights-js": "^1.0.20",

src/components/operations/operation-details/operationDetailsModelBinder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class OperationDetailsModelBinder implements IModelBinder<OperationDetail
1414

1515
public async contractToModel(contract: OperationDetailsContract): Promise<OperationDetailsModel> {
1616
const model = new OperationDetailsModel();
17-
model.enableConsole = contract.enableConsole === true;
17+
model.enableConsole = contract.enableConsole === true || contract.enableConsole === undefined;
1818

1919
return model;
2020
}

src/persistence/mapiObjectStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export class MapiObjectStorage implements IObjectStorage {
346346
public convertPaperbitsContractToArmContract(contract: any, isLocalized: boolean = false): any {
347347
let converted;
348348

349-
if (!contract) {
349+
if (contract === null || contract === undefined) { // here we expect "false" as a value too
350350
return null;
351351
}
352352

0 commit comments

Comments
 (0)