fix: DelegationCredential - Duplicate GoogleMeet and unnecessary serviceAccount key access (#21269)
* Remove unused return statement * Fix return from fn instead of continuing the loop * Ensure userId is set for existing records on update * ensure that serviceAccountKey is only retrieved whenb assked
This commit is contained in:
1 parent
deb55c0536
commit
df75df7008
32 files changed
+196
-113
No files matched your search
@@ -125,7 +125,10 @@ export async function getLocationGroupedOptions(
|
||||
: {}),
|
||||
};
|
||||
if (apps[groupByCategory]) {
|
||||
apps[groupByCategory] = [...apps[groupByCategory], option];
|
||||
const existingOption = apps[groupByCategory].find((o) => o.value === option.value);
|
||||
if (!existingOption) {
|
||||
apps[groupByCategory] = [...apps[groupByCategory], option];
|
||||
}
|
||||
} else {
|
||||
apps[groupByCategory] = [option];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user