We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f12200 commit 2650617Copy full SHA for 2650617
libs/language-server/src/lib/ast/wrappers/typed-object/block-type-wrapper.ts
@@ -77,8 +77,10 @@ export class BlockTypeWrapper extends TypedObjectWrapper<ReferenceableBlockTypeD
77
wrapperFactories,
78
);
79
if (!ERROR_TYPEGUARD(defaultValue)) {
80
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
81
- properties[property.name]!.defaultValue = defaultValue;
+ const propertySpec = properties[property.name];
+ assert(propertySpec !== undefined);
82
+ propertySpec.defaultValue = defaultValue;
83
+ properties[property.name] = propertySpec;
84
}
85
86
0 commit comments