fps-importer: fix remote_oj import (#668)

This commit is contained in:
panda authored and GitHub committed 2023-10-12 00:52:48 +08:00
1 parent 52e0852fc5
commit ed396dc529
1 file changed
+1 -1
+1 -1
View File
@@ -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];