Skip to content

Commit

Permalink
fps-importer: fix remote_oj import
Browse files Browse the repository at this point in the history
  • Loading branch information
pandadtdyy authored Oct 11, 2023
1 parent 52e0852 commit 4ae4c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fps-importer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class FpsProblemImportHandler extends Handler {
time: p.time_limit[0]._ + p.time_limit[0].$.unit,
memory: p.memory_limit[0]._ + p.memory_limit[0].$.unit,
};
if (p.remote_oj) {
if (p.remote_oj?.[0]) {
config.type = ProblemType.Remote;
config.subType = knownRemoteMapping[p.remote_oj[0]] || p.remote_oj[0];
config.target = p.remote_id[0];
Expand Down

0 comments on commit 4ae4c76

Please sign in to comment.