More defineProperty issues
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user