From 4ae4c76038241183c50e34f7267364eec545e479 Mon Sep 17 00:00:00 2001 From: panda Date: Wed, 11 Oct 2023 03:37:27 -0500 Subject: [PATCH] fps-importer: fix remote_oj import --- packages/fps-importer/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fps-importer/index.ts b/packages/fps-importer/index.ts index 640ff540b..2efe61d94 100644 --- a/packages/fps-importer/index.ts +++ b/packages/fps-importer/index.ts @@ -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];