We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00f913c commit 68bd221Copy full SHA for 68bd221
packages/@ngtools/json-schema/src/schema-class-factory.ts
@@ -96,6 +96,9 @@ class SchemaClassBase<T> implements SchemaClass<T> {
96
/** Sets the value of a destination if the value is currently undefined. */
97
$$alias(source: string, destination: string) {
98
let sourceSchemaTreeNode = _getSchemaNodeForPath(this.$$schema(), source);
99
+ if (!sourceSchemaTreeNode) {
100
+ return false;
101
+ }
102
103
const fragments = _parseJsonPath(destination);
104
const maybeValue = fragments.reduce((value: any, current: string) => {
0 commit comments