@indigina/ui-kit 1.1.527 → 1.1.528
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.
|
@@ -16624,12 +16624,13 @@ class KitUserRoleDetailsComponent {
|
|
|
16624
16624
|
.sort((a, b) => a.category.localeCompare(b.category));
|
|
16625
16625
|
}
|
|
16626
16626
|
permissionsEqual(a, b) {
|
|
16627
|
-
const
|
|
16628
|
-
|
|
16629
|
-
|
|
16630
|
-
|
|
16631
|
-
|
|
16632
|
-
|
|
16627
|
+
const allKeys = [
|
|
16628
|
+
...new Set([
|
|
16629
|
+
...Object.keys(a),
|
|
16630
|
+
...Object.keys(b),
|
|
16631
|
+
]),
|
|
16632
|
+
];
|
|
16633
|
+
return allKeys.every(key => {
|
|
16633
16634
|
const sortedA = [...(a[key] ?? [])].sort((x, y) => x.localeCompare(y)).join();
|
|
16634
16635
|
const sortedB = [...(b[key] ?? [])].sort((x, y) => x.localeCompare(y)).join();
|
|
16635
16636
|
return sortedA === sortedB;
|