bkper-js 2.43.2 → 2.43.3
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/dist/bkper.min.js +1 -1
- package/dist/bkper.min.js.map +3 -3
- package/lib/model/Account.js +3 -2
- package/package.json +1 -1
package/lib/model/Account.js
CHANGED
|
@@ -287,11 +287,12 @@ export class Account extends ResourceProperty {
|
|
|
287
287
|
}
|
|
288
288
|
/** @internal */
|
|
289
289
|
isInGroupObject_(group) {
|
|
290
|
-
|
|
290
|
+
const groupId = group.getId();
|
|
291
|
+
if (this.payload.groups == null || !groupId) {
|
|
291
292
|
return false;
|
|
292
293
|
}
|
|
293
294
|
for (var i = 0; i < this.payload.groups.length; i++) {
|
|
294
|
-
if (this.payload.groups[i]
|
|
295
|
+
if (this.payload.groups[i].id === groupId) {
|
|
295
296
|
return true;
|
|
296
297
|
}
|
|
297
298
|
}
|