@yeeyoon/library 3.6.1 → 3.6.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -43,11 +43,14 @@ const TenantSelector = (props) => {
|
|
43
43
|
id = tenants[0].id;
|
44
44
|
name = tenants[0].name;
|
45
45
|
}
|
46
|
-
if (!isSharePlatform) {
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
} else {
|
46
|
+
// if (!isSharePlatform) {
|
47
|
+
// tenants = tenants.filter(
|
48
|
+
// (item) => !shareTenantIdList.includes(item.id)
|
49
|
+
// );
|
50
|
+
// } else {
|
51
|
+
// tenants = tenants.filter((item) => shareTenantIdList.includes(item.id));
|
52
|
+
// }
|
53
|
+
if (isSharePlatform) {
|
51
54
|
tenants = tenants.filter((item) => shareTenantIdList.includes(item.id));
|
52
55
|
}
|
53
56
|
setTenantList(tenants);
|