fix host center current target selection
This commit is contained in:
parent
566ebd1a6b
commit
3f7d14e528
@ -705,7 +705,7 @@
|
|||||||
|
|
||||||
function pickFirstMemberWorkTarget(body) {
|
function pickFirstMemberWorkTarget(body) {
|
||||||
const targets = Array.isArray(body?.targets) ? body.targets : [];
|
const targets = Array.isArray(body?.targets) ? body.targets : [];
|
||||||
return targets.find((item) => item?.target) || targets[0] || body?.target || null;
|
return targets[0] || body?.target || null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function pickGiftValue(workTarget) {
|
function pickGiftValue(workTarget) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user