1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-07 00:58:27 +02:00

set policy data to null

This commit is contained in:
Kyle Spearrin 2020-01-20 08:59:06 -05:00
parent f6fb56229e
commit 00b9f4cab6

View File

@ -63,7 +63,7 @@ export class PolicyEditComponent implements OnInit {
const request = new PolicyRequest(); const request = new PolicyRequest();
request.enabled = this.enabled; request.enabled = this.enabled;
request.type = this.type; request.type = this.type;
request.data = ''; request.data = null;
try { try {
this.formPromise = this.apiService.putPolicy(this.organizationId, this.type, request); this.formPromise = this.apiService.putPolicy(this.organizationId, this.type, request);
await this.formPromise; await this.formPromise;