Skip to content

Commit 9806659

Browse files
[tools-public] Fix team priorization (#305)
1 parent 99b312b commit 9806659

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools-public/toolpad/resources/queryAbout.ts

+4
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,13 @@ export async function queryAbout() {
7474
const customCity = employee.address.customColumns?.column_1738498855264;
7575
const teams = employee.work.custom.field_1680187492413.split(',');
7676
let team = teams[0];
77+
// Prioritize when part of multiple teams rather than picking the first one
7778
if (teams.includes('Core')) {
7879
team = 'Core';
7980
}
81+
if (teams.includes('X')) {
82+
team = 'X';
83+
}
8084
if (teams.includes('MUI')) {
8185
team = 'MUI';
8286
}

0 commit comments

Comments
 (0)