bugfix
This commit is contained in:
parent
357085e7fd
commit
553bcb4307
@ -85,7 +85,7 @@ export function createRelatedRefProto(
|
||||
[TrainWindow.Type, graphicData.RelatedRef.DeviceType.TrainWindow],
|
||||
]);
|
||||
const protoDeviceType = typeMap.get(type);
|
||||
if (protoDeviceType !== undefined) throw Error(`输入的type有误: ${type}`);
|
||||
if (protoDeviceType === undefined) throw Error(`输入的type有误: ${type}`);
|
||||
const protoData = new graphicData.RelatedRef({
|
||||
deviceType: protoDeviceType,
|
||||
id,
|
||||
|
Loading…
Reference in New Issue
Block a user