From fac15fa6918dff930d10a37737a2e28534260c65 Mon Sep 17 00:00:00 2001 From: Cma Date: Tue, 15 Feb 2022 21:29:38 +0900 Subject: [PATCH] add oengus line type OTHER --- bundles/admin/scheduleImport/scheduleImportCore.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bundles/admin/scheduleImport/scheduleImportCore.tsx b/bundles/admin/scheduleImport/scheduleImportCore.tsx index 94cd3c145..c1cb4f7b6 100644 --- a/bundles/admin/scheduleImport/scheduleImportCore.tsx +++ b/bundles/admin/scheduleImport/scheduleImportCore.tsx @@ -6,6 +6,7 @@ import HTTPUtil from '../../public/util/http'; import Endpoints from '../../tracker/Endpoints'; import _ from 'lodash'; import { EventModel } from './scheduleImport'; +import { OengusOtherLine } from 'oengus-api/dist/types'; type Props = { event: EventModel; @@ -16,7 +17,7 @@ export const ScheduleImportCore = ({ event, schedule }: Props) => { const [process, setProcess] = useState<'before' | 'runners' | 'schedules' | 'done'>('before'); const [imported, setImported] = useState(0); - const makeRun = (line: OengusRunLine | OengusSetupLine, index: number): Run => { + const makeRun = (line: OengusRunLine | OengusSetupLine | OengusOtherLine, index: number): Run => { return { pk: -1, model: 'tracker.speedrun',