(item = {})
| 144 | } |
| 145 | |
| 146 | function pickId(item = {}) { |
| 147 | for (const key of ["id", "sorghum_id", "sorghumId", "member_sorghum_id", "memberSorghumId", "land_id", "landId"]) { |
| 148 | if (item[key] !== undefined && item[key] !== null && item[key] !== "") return item[key]; |
| 149 | } |
| 150 | return ""; |
| 151 | } |
| 152 | |
| 153 | function landNo(item = {}) { |
| 154 | return item.serial_number ?? item.serialNumber ?? pickId(item) ?? "?"; |
no outgoing calls
no test coverage detected