Navigation Menu

Skip to content

Commit

Permalink
Fixed heading IDs and anchor generation logic. Fixed default value fo…
Browse files Browse the repository at this point in the history
…r "enableConsole" option in operation details. (#359)
  • Loading branch information
azaslonov committed Dec 6, 2019
1 parent 524644e commit 48e0160
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -59,11 +59,11 @@
"webpack-merge": "^4.2.2"
},
"dependencies": {
"@paperbits/azure": "0.1.181",
"@paperbits/common": "0.1.181",
"@paperbits/core": "0.1.181",
"@paperbits/prosemirror": "0.1.181",
"@paperbits/styles": "0.1.181",
"@paperbits/azure": "0.1.183",
"@paperbits/common": "0.1.183",
"@paperbits/core": "0.1.183",
"@paperbits/prosemirror": "0.1.183",
"@paperbits/styles": "0.1.183",
"@webcomponents/webcomponentsjs": "^2.4.0",
"adal-vanilla": "^1.0.18",
"applicationinsights-js": "^1.0.20",
Expand Down
Expand Up @@ -14,7 +14,7 @@ export class OperationDetailsModelBinder implements IModelBinder<OperationDetail

public async contractToModel(contract: OperationDetailsContract): Promise<OperationDetailsModel> {
const model = new OperationDetailsModel();
model.enableConsole = contract.enableConsole === true;
model.enableConsole = contract.enableConsole === true || contract.enableConsole === undefined;

return model;
}
Expand Down
2 changes: 1 addition & 1 deletion src/persistence/mapiObjectStorage.ts
Expand Up @@ -346,7 +346,7 @@ export class MapiObjectStorage implements IObjectStorage {
public convertPaperbitsContractToArmContract(contract: any, isLocalized: boolean = false): any {
let converted;

if (!contract) {
if (contract === null || contract === undefined) { // here we expect "false" as a value too
return null;
}

Expand Down

0 comments on commit 48e0160

Please sign in to comment.