bkper-js 1.35.4 → 1.35.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/model/Account.js +1 -1
- package/lib/model/Group.js +1 -1
- package/package.json +1 -1
package/lib/model/Account.js
CHANGED
|
@@ -291,7 +291,7 @@ export class Account {
|
|
|
291
291
|
}
|
|
292
292
|
if (groupObject) {
|
|
293
293
|
for (let i = 0; i < this.payload.groups.length; i++) {
|
|
294
|
-
const groupId = this.payload.groups[i];
|
|
294
|
+
const groupId = this.payload.groups[i].id;
|
|
295
295
|
if (groupId == groupObject.getId()) {
|
|
296
296
|
this.payload.groups.splice(i, 1);
|
|
297
297
|
}
|
package/lib/model/Group.js
CHANGED
|
@@ -403,7 +403,7 @@ export class Group {
|
|
|
403
403
|
update() {
|
|
404
404
|
return __awaiter(this, void 0, void 0, function* () {
|
|
405
405
|
var _a;
|
|
406
|
-
const previousParentId = (_a = this.
|
|
406
|
+
const previousParentId = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.getId();
|
|
407
407
|
this.payload = yield GroupService.updateGroup(this.book.getId(), this.payload);
|
|
408
408
|
this.book.updateGroupCache(this, previousParentId);
|
|
409
409
|
return this;
|