More defineProperty issues

This commit is contained in:
2023-11-03 11:14:00 -04:00
parent a712282986
commit 73445456ff

View File

@ -25,9 +25,7 @@ export default function (props: ReportCardProps & { port?: MessagePort }) {
const actionMap: { [k: number]: number } = {};
for (let i = 0; i < props.target_ids.length; i++)
Object.defineProperty(targetMap, props.target_ids[i], {
value: props.target_usernames[i],
});
targetMap[props.target_ids[i]] = props.target_usernames[i];
async function submitActions() {
setLoading(true);