fix: approveCheck

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-01-30 10:25:43 +07:00
parent 6280ab2e17
commit 802e63da13

View file

@ -168,9 +168,8 @@ const commanderList = computed(() => {
const approveCheck = computed(() => {
const commanders = rows.value?.commanders;
return (
Array.isArray(commanders) &&
commanders.length > 0 &&
commanders.every((commander) => commander.approveStatus === "APPROVE")
commanders?.every((commander) => commander.approveStatus === "APPROVE") ??
false
);
});