Open diabloevagto opened 5 years ago
if tokens.data.key === species tokens.species_shortcut = tokens.data.value
補充說明,資料更新時,如果更新的是 species 欄位 (tokens[i].data[j].key === 'species'),
tokens[i].data[j].key === 'species'
則連帶更新token[i].species_shortcut的值為 tokens[i].data[j].value
token[i].species_shortcut
tokens[i].data[j].value
Originally posted by @trashmai in https://github.com/TaiBIF/camera-trap-webapp/issues/23#issuecomment-442834485
已補上
補充說明,資料更新時,如果更新的是 species 欄位 (
tokens[i].data[j].key === 'species'
),則連帶更新
token[i].species_shortcut
的值為tokens[i].data[j].value
Originally posted by @trashmai in https://github.com/TaiBIF/camera-trap-webapp/issues/23#issuecomment-442834485