Improve validation for junction.edge to handle non-object/array types
This commit is contained in:
@@ -3421,7 +3421,11 @@ function validateSplineCorridorJunction(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isRecord(junction.edge)) {
|
if (
|
||||||
|
typeof junction.edge !== "object" ||
|
||||||
|
junction.edge === null ||
|
||||||
|
Array.isArray(junction.edge)
|
||||||
|
) {
|
||||||
diagnostics.push(
|
diagnostics.push(
|
||||||
createDiagnostic(
|
createDiagnostic(
|
||||||
"error",
|
"error",
|
||||||
|
|||||||
Reference in New Issue
Block a user