diff --git a/src/questionData/QuestionDataModule.ts b/src/questionData/QuestionDataModule.ts index 2715ae7..fa549b0 100644 --- a/src/questionData/QuestionDataModule.ts +++ b/src/questionData/QuestionDataModule.ts @@ -92,7 +92,14 @@ export class QuestionDataProxy extends BABAProxy { } public getNodeById(id: string): TreeNodeModel | undefined { - return this.getfidMapQuestionData().get(id); + let map = this.getfidMapQuestionData(); + if (map.has(id)) { + return map.get(id); + } else if (map.has(parseInt(id))) { + return map.get(parseInt(id)); + } else { + return undefined; + } } public getNodeByQid(qid: string): TreeNodeModel | undefined {